On 09/02/2024 02:54, Kebret, Michael wrote:
Tomcat version 9.0.83 running on Linux redhat 7 java 11.0.20.
When changing the protocol from TCP to TCPS in Catalina.properties and in
server.xml we have attribute truststorePassword= (tested with both cleartext
and encrypted) password connection is refused to the DB and get the below
exceptions.
It isn't clear what configuration you are using. Please provide both the
non-TLS and TLS configurations.
However, when we add -Djavax.net.ssl.trustStorePassword=cleartext to setenv.sh
the connection is made successfully. Wanted to see if anyone has faced
something similar or have any suggestions on how I can get TCPS working without
having to use -D option in setenv.sh
My reading of [1] is that the property name is
"javax.net.ssl.trustStorePassword" whether it is set as a connection
property or as a system property. You seem to be using a connection
property of "truststorePassword" which is a Tomcat property for HTTPS
connections.
Mark
[1] https://www.oracle.com/docs/tech/wp-oracle-jdbc-thin-ssl.pdf
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org