How to Stop the Certificate Selection Dialog in Excel Add-ins
Question details
The user wants to prevent the Select a certificate for Authentication dialog from appearing repeatedly in React-based Excel add-ins deployed across QA, UAT, and production environments.
- Product
- Microsoft Excel Add-ins
- Device & OS
- not provided
- Scenario
- Developing and deploying React-based Excel add-ins where users are repeatedly interrupted by client-certificate authentication prompts.
- Observed behavior
- The Select a certificate for Authentication dialog repeatedly pops up, interrupting the workflow across multiple environments.
Before modifying your authentication flow, ensure you have administrative access to your Microsoft Entra ID tenant and the appropriate permissions to update your Excel add-in manifest.
Implement Token-Based Authentication (SSO)
Replace client-certificate authentication with token-based authentication to eliminate repetitive certificate prompts entirely.
Token-based authentication provides a seamless user experience by avoiding manual certificate selection dialogs. By implementing the Office SSO API, the add-in can authenticate users silently in the background.
Register your Excel add-in application in the Azure Portal under Microsoft Entra ID to enable single sign-on (SSO) capabilities.
Add the WebApplicationInfo section and required resource properties to your add-in's XML manifest file to authorize the application.
Use the OfficeRuntime.auth.getAccessToken() method in your React codebase to silently request authentication tokens without prompting the user.
Automate Client Certificate Deployment
If your organization strictly requires client-certificate authentication, configure endpoints to trust certificates automatically without manual user intervention.
Need a simpler spreadsheet solution? Try WPS Office
If managing complex authentication flows, enterprise add-ins, and recurring certificate prompts in Microsoft Excel becomes overwhelming, consider switching to WPS Office. It provides a highly compatible spreadsheet editor without the heavy administrative overhead.
- 1. Download WPS Office: Visit the official WPS website and download the free installer for your operating system.
- 2. Install the Software: Run the installer and follow the quick setup wizard to complete the installation.
- 3. Open Your Spreadsheets: Launch WPS Spreadsheets and open your existing .xlsx files directly to start working.

Frequently Asked Questions
Why does the certificate selection dialog keep appearing in my Excel add-in?
This occurs when the add-in relies on client-certificate authentication and the embedded browser engine (such as Edge WebView2) cannot automatically select a trusted certificate, forcing a manual prompt for the user.
Can I use the Office SSO API in a React-based Excel add-in?
Yes, you can implement the Office SSO API using OfficeRuntime.auth.getAccessToken() within your React components to silently authenticate users via Microsoft Entra ID without triggering certificate prompts.
How do I auto-select certificates in Edge WebView2?
You can configure the AutoSelectCertificateForUrls enterprise policy in Windows to automatically choose the correct client certificate for your add-in's domain, effectively bypassing the manual selection dialog.




