Certificate error connecting SQLCompare to a server after upgrading to SSMS 19
DBAJohnny
Posts: 30 Bronze 2
in SQL Compare
I am connected successfully in SSMS to an on-prem SQL Server with a windows account from an on-prem domain (which uses an internally-generated certificate).
After upgrading to SSMS 19, I'm getting this error:
A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - The certificate chain was issued by an authority that is not trusted.)
A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - The certificate chain was issued by an authority that is not trusted.)
Microsoft's article on the subject https://learn.microsoft.com/en-us/troubleshoot/sql/database-engine/connect/certificate-chain-not-trusted?tabs=ole-db-driver-19 says the fix is to to set the "encrypt/use encryption" flag on the connection string to No or Optional.
How do I do that?
How do I do that?
Tagged:
Answers
Thanks for your post.
Just before we go any further, please could I ask which version you are using? The need to make these changes should have been fixed in v15.0.3
So the product is trying to connect to the server securely (over SSL) and it rejecting the offered internally-generated certificate.
There are three possible resolutions we'd suggest:
;encrypt=false
to the end of the connection stringThanks! I now see the "trust server certificate" checkbox, just as you wrote. All's good now.
Johnny