| title | Certificate Procedures |
|---|---|
| description | Learn to export SQL Server certificate and add a private certification authority to the trusted Root Certification Authorities certificate store. |
| author | suresh-kandoth |
| ms.author | sureshka |
| ms.reviewer | randolphwest |
| ms.date | 08/26/2025 |
| ms.service | sql |
| ms.subservice | configuration |
| ms.topic | how-to |
This article describes the procedure of exporting server certificates and adding a CA to the Trusted Root Certification Authorities certificate store.
Use the following procedure to export the certificate:
-
Select Run from the Start menu and then enter
certmgr.msc.The Certificate Manager tool for the current user appears.
-
Locate to Certificates - Current User > Personal > Certificates, right-click the certificate that you want to export, select All Tasks, and then select Export.
[!WARNING]
Don't export the private key. -
Complete the Certificate Export Wizard, and store the certificate file in a suitable location.
Add a private Certification Authority (CA) to the Trusted Root Certification Authorities certificate store
You can manually install the root certificate of a private CA into the Trusted Root Certification Authorities certificate store on a computer by using the following procedure:
-
Select Run from the Start menu, and then enter
mmcin the Open box, and select OK. -
In the MMC console, select File > Add/Remove Snap In.
-
From the Available snap-ins list, select Certificates, and then select Add.
-
In the Certificates snap-in window, select Computer account, and then select Next.
-
In the Select Computer window, leave Local computer selected, and then select Finish.
-
In the Add or Remove Snap-in window, select OK.
-
In the MMC snap-in dialog, expand Certificates (Local Computer) > Trusted Root Certification Authorities and then right-click Certificates. Point to All Tasks, and select Import.
The window on the right shows the items of the selected node.
-
Select a certificate you want to export and right-click. Select All Tasks, and then select Import.
-
On the Welcome to the Certificate Import Wizard screen, select Local Machine > Next.
-
Browse to the certificate you exported from a computer that's running SQL Server and complete the wizard.