We have recently built a new VA’s and all the test connectivity is opened. Verified port communication on VA’s directly but when we’re doing test connection of the JDBC sources getting the following error and working when going to old VA’s of the same cluster.
Error message: The server encountered an unexpected error while contacting target system. Please check the logs. The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: “Unexpected rethrowing”.
Also tested by adding jdbc:sqlserver://**:1433;database=;encrypted=false;trustServerCertificate=true;
but no luck.
The error you’re seeing indicates an SSL/TLS handshake issue, not just basic connectivity.Even though nc or port checks show that 1433 is open, that doesn’t guarantee JDBC over SSL will work. Make sure the Azure firewall and NSG rules explicitly allow traffic from the new VA subnet to the SQL Server, not just on a port level but for full session flow, including return traffic.
Thank you everyone for all the suggestions. Issue is now resolved.
It was network connectivity issue. Although, we were getting the response on VA but its was blocked from DB server.