OneDrive Error Codes

Fix PKIX Certificate Errors When Calling OneDrive with Microsoft Graph

Emma BrownEmma Brown Nov 13, 2026 869 views

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.

Fix PKIX Certificate Errors When Calling OneDrive with Microsoft Graph
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.
Before you start

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.

Solution 1Recommended

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.

1
Open the certificate manager

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.

2
Import the Baltimore CyberTrust Root certificate

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.

3
Verify the certificate chain

Open the imported certificate, select Certification Path, and confirm that the Microsoft Graph certificate chains to Baltimore CyberTrust Root without warnings.

4
Restart the application or service

Close and restart the application, service, or runtime that calls Microsoft Graph so it reloads the updated certificate store.

Trust the Baltimore CyberTrust Root certificate in Windows or macOS
Certificate trust updated: After the root certificate is trusted, new Microsoft Graph requests to OneDrive for Business should complete without PKIX errors.
Free Microsoft Office alternative

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. 1. Download WPS Office: Click Download WPS Office Free and install WPS Office on your Windows, macOS, Linux, Android, or iOS device.
  2. 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. 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.
Avoid Microsoft Graph PKIX certificate configuration when accessing OneDrive files from the WPS Office interfaceFull Microsoft Office format compatibility for .docx, .xlsx, and .pptx filesFree, lightweight download that starts fast and uses fewer system resources than Microsoft OfficeFamiliar ribbon UI makes migration from Microsoft Word, Excel, and PowerPoint straightforwardSeamless cloud and OneDrive integration for opening and saving files
microsoft office alternative - wps office

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.