Reputation: 923
I am trying to configure my db server to work with TLS. Created server wallet with server certificate, defined listener with tcps protocol, now I am trying to restart the listener.
I have not configured client that located on the same machine. I want my application act as a client and this client will be configured later.
Performing lsnrctl stop
I receive an exception like
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCPS)(HOST=myhost.com)(PORT=1521)))
ORA-28759: failure to open file
TNS-12560: TNS:protocol adapter error
TNS-00540: SSL protocol adapter failure
ORA-28864: SSL connection closed gracefully
TNS-12560: TNS:protocol adapter error
TNS-00542: SSL Handshake failed
Usually this exception happens when server certificate is not located on trust store, or handshake failed. Could you please advise me:
Upvotes: 0
Views: 7527
Reputation: 923
I configured oracle with MUTUAL authentication, however on client side haven't put the keystore, that is why received handshake exception.
Need to add some parameters for java on client side (application)
export JAVA_OPTS ="$JAVA_OPTS -Djavax.net.ssl.trustStore=path/truststore.jks"
export JAVA_OPTS ="$JAVA_OPTS -Djavax.net.ssl.trustStorePassword=changeIT"
export JAVA_OPTS ="$JAVA_OPTS -Djavax.net.ssl.keyStore=path/keystore.jks"
export JAVA_OPTS ="$JAVA_OPTS -Djavax.net.ssl.keyStorePassword=changeIT"
Now problem was solved.
Upvotes: 1