I am trying to make a JDBC connection to SQL server but I am getting this error Cannot create PoolableConnectionFactory (The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "SQL Server did not return a response. The connection has been closed. ClientConnectionId:ed21ad88-5a8b-47fc-837e-e93b3caf2fca".)
using SSMS (SQL server 18) using java version "18.0.1.1"
I checked in related content in stackoverflow but still no use SQL Server JDBC Error on Java 8: The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption