Skip to main content
Matrix42 Self-Service Help Center

SQL Server: How To Enable Encrypted Connections


Encrypted SQL Server Connection enhances security by limiting data loss even if access controls are bypassed. For example, if the database host computer is misconfigured and a hacker obtains sensitive data, that stolen information might be useless if it is encrypted.


Encrypted SQL Server Connections

To enable encrypted connections to SQL Server:

  1. Open Microsoft Management Console: right-click Start → Run  → type mmc → click OK

  1. In the MMC Console, go to File menu → Add/Remove Snap-ins:

  1. In the Add or Remove Snap-ins dialog box, click Certificates → Add:

  1. In the Certificates snap-in dialog box, choose Computer account → click Next → select the computer you want this snap-in to manage (by default, local computer) → click Finish:

  2. In the Add/Remove Snap-in dialog box, click OK;

  3. In the Certificates snap-in → expand Certificates → expand Personal → right-click Certificates → point to All Tasks → click Import:


  4. Select your certificate or Import new.

  5. Click on Certificates → right-click the imported/selected certificate → point to All Tasks → click Manage Private Keys:

  6. In the Security dialog box, add Read permission for the user account used by the SQL Server service account and click OK to apply changes: 

  7. Open SQL Server configuration manager by choosing Start → SQL Server <version> Configuration Manager

  1. Expand the SQL Server network configuration for Protocols, open the context (right-click) menu for your SQL Server name, and choose Properties:

  1. Open the Certificate tab → select the certificate that will be used for connection encryption → click OK:

  1. Go back to the Flags tab. To enable encryption by default set Force Encryption flag to yes:

  1. Restart the SQL Server service. 

Removing unsecured HTTP connection

Also, you can make secured communication streams between the user clients and the MS-SQL Reporting Services by removing unsecured HTTP connection. 

  1. Open the Report Server Configuration Manager

  1. Disable unsecured connection for Web Service URL: in Web Service URL → open Advanced configuration → Remove entries from Multiple HTTP Identities section:

 Add HTTPS Certificate(s) to the Multiple HTTPS Identities section, if it not set.

  1. In the same way, disable unsecured connection for Web Portal URL and add HTTPS Certificate(s) if necessary.

  • Was this article helpful?