Fix PKIX Certificate Errors When Calling OneDrive with Microsoft Graph
Question details
The user needs to resolve PKIX certificate errors when Microsoft Graph API requests to OneDrive for Business fail because the Baltimore CyberTrust Root certificate is not trusted and certificate-chain validation fails.

- Product
- OneDrive for Business and Microsoft Graph API
- Device & OS
- not provided
- Scenario
- The user is calling OneDrive for Business through Microsoft Graph API from an application, server, or client environment and needs to establish a trusted TLS certificate chain.
- Observed behavior
- Requests fail with PKIX certificate errors because the Baltimore CyberTrust Root certificate is not trusted in the certificate store or truststore.
Identify whether the PKIX error is reported by the operating system, Java, .NET, or another runtime, and locate the certificate store or truststore used for Microsoft Graph TLS validation.
Trust the Baltimore CyberTrust Root certificate in Windows or macOS
Use this when the operating system certificate store does not trust the root that signs the Microsoft Graph TLS certificate.
Microsoft Graph endpoints use a certificate chain that depends on the Baltimore CyberTrust Root. If that root is missing or disabled in the local certificate store, clients report PKIX or certificate-chain errors.
On Windows, press Win+R, type certlm.msc, and press Enter to open the local computer certificate manager. On macOS, open Keychain Access and select System Roots.
Download the Baltimore CyberTrust Root certificate from a trusted source, then in Trusted Root Certification Authorities > Certificates, right-click Certificates and choose All Tasks > Import. Follow the Certificate Import Wizard.
Open the imported certificate, select Certification Path, and confirm that the Microsoft Graph certificate chains to Baltimore CyberTrust Root without warnings.
Close and restart the application, service, or runtime that calls Microsoft Graph so it reloads the updated certificate store.

Update a Java or custom runtime truststore
Use this when the PKIX error comes from Java or an application with its own truststore rather than the operating system certificate store.
Get specialized help from the Microsoft Graph community
Use this if the certificate chain still fails after trusting the Baltimore CyberTrust Root, or if the issue is specific to Microsoft Graph API configuration.
Access OneDrive Files in WPS Office Without Microsoft Graph PKIX Setup
This PKIX certificate error belongs to the Microsoft Graph API and Microsoft certificate trust chain, not WPS Office. For daily document work, WPS Office is a free, lightweight Microsoft Office alternative that opens, edits, and saves Word, Excel, and PowerPoint files with high compatibility, a familiar ribbon UI, and OneDrive access without direct Graph API certificate setup.
- 1. Download WPS Office: Click Download WPS Office Free and install WPS Office on your Windows, macOS, Linux, Android, or iOS device.
- 2. Open WPS Office and access cloud storage: Launch WPS Office, open the cloud or OneDrive integration from the home screen, and connect the account that holds your files.
- 3. Open and edit Office documents: Open .docx, .xlsx, or .pptx files directly from OneDrive, edit them in Writer, Spreadsheets, or Presentation, and save them back in the same Microsoft Office format.

Frequently Asked Questions
What does a PKIX certificate error mean when calling OneDrive with Microsoft Graph?
It means the TLS certificate chain for graph.microsoft.com or the OneDrive for Business endpoint could not be validated because a required root certificate, usually Baltimore CyberTrust Root, is missing or not trusted in the client or server truststore.
How do I check whether my environment trusts the Baltimore CyberTrust Root certificate?
Open the operating system certificate manager or the runtime truststore, search for Baltimore CyberTrust Root, and inspect the certificate path for the Microsoft Graph endpoint. You can also run openssl s_client -connect graph.microsoft.com:443 to view the chain.
Why does Java report 'PKIX path building failed' for Microsoft Graph?
Java uses its own cacerts truststore instead of the operating system certificate store. You usually need to import the Baltimore CyberTrust Root certificate into cacerts with the keytool -importcert command.
Can WPS Office fix PKIX certificate errors in Microsoft Graph?
No. This is a Microsoft Graph API certificate-trust issue, not a WPS Office document issue. WPS Office can help you open and edit OneDrive files without working directly with Microsoft Graph API certificate setup.
How can I work with OneDrive files if I want to avoid Microsoft Graph API errors?
Download WPS Office Free, connect your OneDrive account in WPS Office, and open .docx, .xlsx, or .pptx files directly from the WPS cloud interface.




