Unable to connect to database. The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption

Hi all!

I configure connect to database jdbc and get error(

[2020-07-09T19:07:06,569][ERROR][logstash.inputs.jdbc     ] Unable to connect to database. Tried 1 times {:error_message=>"Java::ComMicrosoftSqlserverJdbc::SQLServerException: The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: \"java.security.cert.CertificateException: Certificates do not conform to algorithm constraints\".

How fix it? Thanks

The server certificate (or a certificate used to sign that certificate) has a very weak hash algorithm, or a key length so short that that makes it weak. Without seeing all the details of the certs we cannot say which.