com.microsoft.sqlserver.jdbc.SQLServerException:com.microsoft.sqlserver.jdbc.SQLServerException:

TEHRA Abhishek (External) 0 Reputation points
2023-12-28T19:34:06.59+00:00

Hello,

I'm getting error "com.microsoft.sqlserver.jdbc.SQLServerException: "encrypt" property is set to "true" and "trustServerCertificate" property is set to "false" but the driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption" in talend microsoft sql server component of talend job. We have tried updating the mssql jdbc jar but didn't worked.

Can you please help us.

Regards,

Abhishek Tehra

SQL Server | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 77,926 Reputation points Volunteer Moderator
    2023-12-28T21:38:20.35+00:00

    If you are not using a purchased certified for your Sqlserver, then you are using a self signed untrusted ssl cert. you need to set trustServerCertificate = true in the connect string.

    the o/s must support overriding the certificate validation. If not, you need to install and trust the cert on the local machine or not use encryption.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.