I have installed wildcard certificate in Certificates(Local Computer)\Personal in sql server. We are using Windows 2008R2 server and 2008 R2 SQL. Certificate is issued by StartCom. With certificate everything is ok (I have used it in IIS), but it didnt appeared in sql configuration manager protocols dropdown list. So i followed microsoft article:
http://support2.microsoft.com/kb/316898
and added certificate thumbprint in registry. Restarted SQL service.
Then I am trying to connect to sql server using SMSS I am getting error:
"A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: SSL Provider, error: 0 - The certificate's CN name does not match the passed value.) (Microsoft SQL Server, Error: -2146762481)"
So obviously problem is wildcard certificate, because it is issued to *.domain.com and server name is server.domain.com.
By this article, microsoft sais that "SQL Server 2008 R2 and the SQL Server 2008 R2 Native Client support wildcard certificates. "
http://technet.microsoft.com/en-us/library/ms189067(v=sql.105).aspx
So question would be: Sql 2008 r2 supports or does not support wildcard certificates. If supports, so there is problem? Why i am getting this error?
So after few days of trying to use wildcard certificate, we generated certificate with hostname, and after 5 min we enjoyed an encrypted connection. But still there is a question..Can sql 2008 r2 work with wildcard certificates or not?