Enabling Encryption on SQL Server is creating problems


hi all,

i trying enable encryption sql server.  thing trying application client-server based (iis webserver & sql server 2005 express databaseserver).  detailing process followed the same.  per theory, should work if settings mentioned below.  but, i’m getting error message while connecting sql server management studio encryption enabled.

the error message - “a connection established server, error occurred during pre-login handshake. (provider: ssl provider, error: 0 - certificate chain issued authority not trusted.)”

step 1 – create & install certificate (tried in both win 2003 & win 7)

installed openssl tool & configured same

generated private key using open ssl command (openssl genrsa -out server.key 1024)

generated certificate signing request using openssl command (openssl req -new -key server.key -out server.csr)

generates self-signed certificate using openssl command (openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt)

installed certificate

step 2 – settings in microsoft management console

imported created certificate file (server.crt) “personal” group

added certificate “trusted root certification authorities” group

step 3 – settings in sql server configuration manger (tied sql server 2005 express, sql server 2012 express, sql server 2012)

set “force encryption” flag “yes”

could not see installed certificate certificates tab.  but, of researches did mentioned sql server automatically certificates fqdn

restarted sql server instance

step 4 – verify if encryption works using sql server management studio

changed default connection properties while logging in; checked “encrypt connection”

on click of connect button, getting below error, “a connection established server, error occurred during pre-login handshake. (provider: ssl provider, error: 0 - certificate chain issued authority not trusted.)”

step 5 – verifying encryption application

changed connection string include “encrypt=true” enable encryption.

on running application, getting same message got in step 4

it great if me resolve issue.  in advance.

regards,

praveen k nair


use certmgr.exe install certificate.

  • run certmgr.exe under local machine administrator account. domain account local administrator privileges not work
certmgr /add your.certificate.filename.cer /s /r localmachine root certmgr /add your.certificate.filename.cer /s /r localmachine trustedpublisher

you may check this: setting ssl encryption sql server using certificates – issues, tips & tricks



SQL Server  >  SQL Server Express



Comments

Popular posts from this blog

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........