Troubleshoot Office 365 SMTP and Outlook REST Certificate Trust on IBM i
Question details
The user needs to establish certificate trust for a third-party IBM i email product connecting to Office 365 SMTP and the Outlook REST API.

- Product
- Microsoft 365 SMTP and Outlook REST API
- Device & OS
- IBM i
- Scenario
- A third-party email product connects to smtp.office365.com and an Outlook REST endpoint, with certificate authorities imported manually on IBM i.
- Observed behavior
- The integration intermittently reports SSL trust errors, and the SMTP and REST services appear to present different certificates.
Identify the exact REST hostname, SMTP port, connection settings, and IBM i certificate store used by the third-party product. Record the full trust error and when it occurs so the vendor can investigate the affected connection.
Inspect the current SMTP and REST certificate chains
Use this approach to compare the certificates actually presented by each endpoint before updating trust on IBM i.
Different services can present different certificate chains, and chains may change over time or between connections. Do not assume that importing a certificate observed once will permanently resolve the error.
From a system with OpenSSL, run `openssl s_client -starttls smtp -connect smtp.office365.com:587 -servername smtp.office365.com -showcerts` to inspect the SMTP certificates presented over STARTTLS.
Find the REST hostname in the third-party product's connection settings. From a system with OpenSSL, run `openssl s_client -connect REST_HOST:443 -servername REST_HOST -showcerts`, replacing both instances of REST_HOST with that hostname.
Share the presented chains and the full error with the product vendor or IBM i administrator. Ask them to verify the required trusted certificate authorities and the certificate store used by the application.
Follow the vendor's instructions for importing verified CA certificates into the IBM i certificate store used by the product, then retry both SMTP and REST connections.

Contact the integration vendor or a Microsoft developer support forum
Use this option if the error remains intermittent or the product's certificate store and supported API are unclear.
Work with Office documents in WPS Office
WPS Office is a free, lightweight alternative for working with Office documents through a familiar interface. Its format compatibility makes it easier to move existing files, but it does not repair Microsoft 365 SMTP or REST certificate trust.

Frequently Asked Questions
Why do the SMTP and REST endpoints show different certificates?
They are separate services and can present different certificate chains. Inspect each configured endpoint separately rather than assuming they share the same certificate authority.
How can I inspect the Office 365 SMTP certificate chain?
With OpenSSL, run `openssl s_client -starttls smtp -connect smtp.office365.com:587 -servername smtp.office365.com -showcerts`. Share the result with your vendor or administrator to identify the required trusted authorities.
Which IBM i certificate store should I update?
The correct store depends on the third-party product and its configuration. Ask the vendor or IBM i administrator to identify the store the application uses before importing verified CA certificates.
Should I disable certificate validation to stop the errors?
No. Keep certificate and hostname validation enabled, and work with the vendor to verify the certificate chain and update the appropriate trust store.




