TCP SSL termination issue on Nginx - for JDBC client
I am exploring the features of Nginx features and doing a POC with all the
possible use cases. If all goes well, probably there would be a huge
investment on the Nginx to use it our cloud based architecture.
Currently exploring an option on TCP SSL termination on Nginx for a SSL
connection from Java JDBC client. Facing issues, any guidance would be speed
up my POC and complete it.
I'm using nginx on Windows 10 and using the opensource version.
Error from JDBC Client:
trigger seeding of SecureRandom
done seeding SecureRandom
SQL State: 08006
IO Error: The Network Adapter could not establish the connection
I'm not very into Java but you might get more details if you add -Djavax.net.debug=SSL,handshake or -Djavax.net.debug=all
The current error is not very explanatory (at least to me) and from nginx side the client just closes connection.
You could test the nginx side with cipherscan https://github.com/mozilla/cipherscan (not sure if there is an alternative for windows, but maybe it's possible to run it in WSL) to see if the problem is with nginx or jdbc client.
Also I would try without the DHE ciphers (and widen available like add TLS_RSA_WITH_AES_128_CBC_SHA256,TLS_RSA_WITH_AES_256_CBC_SHA,TLS_RSA_WITH_AES_128_CBC_SHA)