most likely your sqlserver does not have a trusted certificate. so you need to add
trustServerCertificate=true
to the connection string
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have SQL 2016 server and OS windows server 2016 and if I enabled TLS1.2 on dB server then I am not able to connect to dB seever from application server .I was received SSL related error.What are thing I need to update in my application server and database server
most likely your sqlserver does not have a trusted certificate. so you need to add
trustServerCertificate=true
to the connection string
Hi Jbowy,
[DBNETLIB][ConnectionOpen (SECCreateCredentials()).]SSL Security error this error comming
This is due to the SQLOLEDB provider not supporting TLS 1.2. If TLS 1.0 and TLS 1.1 are not present or enabled on the server it will break the provider's function, causing an error to appear.
Please refer to this thread: https://knowledge.broadcom.com/external/article/225667/connector-solution-user-rule-import-is-f.html
Please download Microsoft® OLE DB Driver 18 for SQL Server® to your server which features backwards compatibility with SQLOLEDB and can be used as a replacement. Then change the connection string provider from SQLOLEDB to MSOLEDBSQL and recycle the site's application pool.
For more detailed screenshots, you can go to the link above to check it out.
Best regards,
Seeya
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Asp.net and currently using sqloledb
That's a very old provider (20+ years). It ships with the OS, but you should use MSOLEDBSQL19, which is the most recent provider. This may give you new problems, since MSOLEDBSQL19 defaults to requiring encryption by a trusted server certificate.