Certificate-Based Authentication (CBA) can be configured in App management and reused by supported workloads, including Exchange Online management actions and PnP SharePoint custom actions.
This configuration uses the existing Microsoft Entra app registration associated with App management. The public certificate is uploaded in Microsoft Entra, while the private key is uploaded in App management.
Prerequisites
- Create or retrieve the certificate files:
- The public certificate (
.cer). - The private key (
.pfx), optionally protected by a password.- If the
.pfxfile is password-protected, enter the password in App management. Otherwise, leave the field blank.
- If the
- The public certificate (
- A Tenant Admin role is required.
- App management must already be configured.
The same certificate can be reused for supported CBA scenarios. For workload-specific configuration, see How to migrate Exchange Online actions to CBA and How to enable PnP SharePoint actions with CBA.
Upload the public certificate in Microsoft Entra
Steps in this section are performed in the Microsoft Entra admin center.
Step 1: find the app registration
Copy the Client ID from the App management page.
Go to “App registrations” and paste the copied Client ID in the “All applications” search bar. Select the existing Microsoft Entra app registration used by App management.

Step 2: upload the certificate
Open the app registration, then go to “Certificates & secrets” > “Certificates”.

Click “Upload certificate”, select the .cer file containing the public key, and click “Add”.

Upload the private key in App management
Steps in this section are performed in the app.
- Open “Settings” > “My organization” > “App management”.
- In the “Certificate” section, click “Upload”.
- Select the
.pfxfile containing the private key for the certificate.

- A password prompt is displayed. If the certificate does not have a password, leave the field blank and click “Next”.

- After the certificate is uploaded, it appears with its expiration date and a button to replace it.

Certificate renewal
Certificates expire periodically and must be renewed before expiry. Certificate status can be verified in “App management”. A banner is displayed if the certificate is expired or misconfigured.
Before the certificate expires:
- Upload the new
.cerfile in Microsoft Entra > App registrations. - In “App management” > “Certificate”, click “Replace”.
- Upload the new
.pfxfile.
How to generate certificates
Use a certificate generation method that matches the organization’s security practices. The following methods are examples; other methods are also possible.
PowerShell
See Microsoft’s guide to creating a self-signed certificate.
Note: self-signed certificates are not trusted by external Certificate Authorities (CAs).
Azure Key Vault
- Navigate to the Azure Key Vault resource.
- Select “Objects” > “Certificates” > “Generate/Import”.
- Select the method, certificate name, and certificate type: self-signed or CA-signed.
- Use a recommended validity of 12–24 months.
- Select PKCS #12 as the content type.