0

I am using MSSQL 2014 latest JDK Latest ELK stack logstash.conf file But getting this issue when I make a connection with the SQL server

enter image description here

[main][e9c4db4e3f1cd9e5b60e74315884750f1c29dac2dc7868d0280893eb5f8b6983] Exception when executing JDBC query {:exception=>"Java::ComMicrosoftSqlserverJdbc::SQLServerException: The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: \"The server selected protocol version TLS10 is not accepted by client preferences [TLS13, TLS12]\"
  • Does [this](https://stackoverflow.com/questions/67246010/the-server-selected-protocol-version-tls10-is-not-accepted-by-client-preferences) or [this](https://stackoverflow.com/questions/68126780/how-to-fix-the-server-selected-protocol-version-tls10-is-not-accepted-by-client) help? – Val Nov 23 '21 at 17:22
  • no i install JDK Firsts means that JRE install automatically in JDK but java.security file does not found – Mian Muhammad Ramzan Nov 24 '21 at 08:26

2 Answers2

1

Add this to your connection string:

encrypt=true; trustServerCertificate=true;
Ethan
  • 876
  • 8
  • 18
  • 34
0

u should enable SSL connection in SQL SERVER