Create a public/private key pair for the Microsoft OneDrive external content connector
Generate a public/private key pair for the Microsoft OneDrive external content connector. Extract the public key as a DER-encoded binary X.509 format certificate for use in configuring API access for the connector in the Microsoft Entra admin center.
Before you begin
You must have access to the Java keytool utility. For details on the keytool utility, see https://docs.oracle.com/en/java/javase/21/docs/specs/man/keytool.html.
Role required: none
About this task
The Microsoft OneDrive external content connector uses a public/private key pair to authenticate with an OAuth 2.0 app configured in the Microsoft Entra admin center. Key pair authentication allows the connector to access your Microsoft OneDrive data via the Microsoft Graph API.
- A public/private key pair in Java KeyStore (JKS) format.
- Your connector administrator needs this JKS keystore file and its password when configuring settings for the Microsoft OneDrive external content connector.
- When the Microsoft OneDrive external content connector runs a crawl, it uses the private key from this JKS keystore file to sign the authentication request it sends to the OAuth 2.0 app defined in the Microsoft Entra admin center.
- A copy of the public key in DER-encoded binary X.509 certificate format.
- Your administrator needs to upload this certificate file to the OAuth 2.0 app defined in the Microsoft Entra admin center that grants API access to the Microsoft OneDrive external content connector.
- When the Microsoft OneDrive external content connector submits its authentication request to the OAuth 2.0 app defined in the Microsoft Entra admin center, the app uses the public key from this uploaded certificate to confirm that the authentication request was signed with the private key.
Procedure
What to do next
| File | Description |
|---|---|
| DER-encoded binary X.509 format public key certificate file | Provide this certificate file to your Microsoft OneDrive administrator. They will need to upload the certificate to the Microsoft Entra admin center when configuring an OAuth 2.0 application for the Microsoft OneDrive external content connector.
For more information on configuring an OAuth 2.0 application in the Microsoft Entra admin center for the Microsoft OneDrive external content connector, see Configure Microsoft OneDrive for external content indexing. |
| JKS keystore file and password | Provide this Java KeyStore file and its password to your ServiceNow AI Platform admins. They will need the file and password when configuring the Microsoft OneDrive external content connector.
For details on creating and configuring the Microsoft OneDrive external content connector, see Create a Microsoft OneDrive external content connector. |