Enable SSL Connection in MSSQL

Secure the ServiceDesk Plus MSSQL database by setting up an SSL connection.

 

To create an SSL connection, you must obtain either a self-signed SSL certificate or purchase a verified SSL certificate from a vendor.

 

To generate a self-signed certificate, go to the command prompt and enter the following command:

New-SelfSignedCertificate -CertStoreLocation Cert:LocalMachineMy -DnsName host.doman.com -KeySpec KeyExchange -FriendlyName SQLCert

 

The following are the basic steps to help you enable an SSL connection in MSSQL. For more information on SSL connections, refer to this link.

 

 Steps to Enable SSL Connection in MSSQL 

 

 

 

 

 To import a certificate chain, upload the respective certificates into Personal, Intermediate, and Trusted Root Certification Authorities.

 

To determine whether the ServiceDesk Plus MSSQL database connection is secure,

- Connect Microsoft SQL Server Management Studio enabling only the Encrypt Connection check box and disabling the Trust server certificate check box.  

- Execute the following query under New Query in the Microsoft SQL Server Management Studio.
  select * from sys.dm_exec_connections; 
 
 The SSL connection details will be displayed.   

 

keytool -import -alias SQLServer-1 -keystore ..libsecurityjssecacerts -file <path to the SQL certificate> 

The keytool -list -v -keystore ../lib/security/jssecacerts > cert.txt command can be used to see if the certificate is imported into jssecacerts