I\'m using Encrypt=yes in a SQL Server connection string, as I need the TCPIP traffic to be encrypted, but on opening the connection I get an error:
Encrypt=yes
<
Your database connection can be configured to encrypt traffic and to accept any certificate from your server. Not a grand solution, but it worked for me.
The resulting connection string should look like this:
"[...];Encrypt=True;TrustServerCertificate=True"