Install the certificate on the SQL Server computer
To establish encrypted connections to the database, first install the certificate on the SQL Server computer.
To install the certificate on the SQL Server computer
- Add the snap-in.
- On theStartmenu, selectRun, enterMMCin theOpenbox, and then selectOK.
- In the Microsoft Management Console, selectFile > Add/Remove Snap-in.
- In theAdd or Remove Snap-insdialog box, selectCertificates, and then selectAdd.
- In theCertificates snap-indialog box, selectComputer account, and then selectNext.
- In theSelect Computerdialog box, keep the defaultLocal computerselection, and then selectFinish.
- In theAdd or Remove Snap-insdialog box, selectOK.
- Import the certificate.
- In the Microsoft Management Console, expandCertificates > Personal, right-clickCertificates, and then selectAll Tasks > Import.
- In the Certificate Import Wizard, specify the certificate file's full path, and then selectNext.
- Enter the password, and then selectNext.
- Specify the certificate store asTrusted Root Certification Authorities, and then selectNext.
- SelectFinish.
- Add the SQL Server service account permission.
- In the Microsoft Management Console, right-click the imported certificate, and then selectAll Tasks > Manage Private Keys.
- In theSecuritydialog box, add read permission for the user account used by the SQL Server service account. Note that the location should be your local computer name.TIP:To find the SQL Server service account:
- Open WindowsServices.
- Double-clickSQL Server (InstanceName).
- Select theLog Ontab, and then find the SQL Server service account in theThis accountbox.
- Add the certificate to the SQL Server instance.
- Open SQL Server Configuration Manager.
- ExpandSQL Server Network Configuration, right-clickProtocols for InstanceName, and then selectProperties.
- In theProtocols for InstanceName Propertiesdialog box, select theCertificatetab, and then select the certificate from theCertificatelist.
- SelectOK.
- (optional) Force encryption.
- In theProtocols for InstanceName Propertiesdialog box, select theFlagstab, and then setForce EncryptiontoYes.WhenForce Encryptionis set toYes, the encryption setting ofDatabase Connection Propertieswill be ignored. The connections to the SQL Server instance will always be encrypted.
- Restart SQL Server.
- In SQL Server Configuration Manager, selectSQL Server Services.
- Right-clickSQL Server (InstanceName), and then selectRestart.
Provide Feedback