Authenticating SQL connection using certificates in .NET

前端 未结 2 1980
时光取名叫无心
时光取名叫无心 2021-01-12 01:51

I\'ve noticed that it is possible SQL Server 2005/2008 to authenticate replication accounts using certificates. Is it possible to authenticate .NET SqlConnection in the same

相关标签:
2条回答
  • 2021-01-12 01:55

    The only way to authenticate a TDS protocol connection (ie. a user connection) is using Windows authentication (NTLM/Kerberos) or SQL Authentication (user/password). Is not possible to authenticate TDS connections using certificates. Only Database Mirroring and Service Broker connections can authenticate using certificates.

    What you probably noticed is the HTTPS authentication between IIS and a client that occurs in Web Based Replication. That is indeed certificate based authentication, but occurs between the client and IIS and SQL Server is not involve din any way in it.

    0 讨论(0)
  • 2021-01-12 01:59

    You can configure ASP.NET to use client side certificates, see this KB article.

    But the ASP.NET server does not have access to your client's certificate. So the ASP.NET server cannot authenticate to SQL Server with a certificate.

    0 讨论(0)
提交回复
热议问题