Hello!
Could somebody explain pls, which is can be done for achieve secure database connection from WAS 8 or 9 to Oracle 12.2?
Currently what we done:
- setup wallet on database side
- setup test node on WAS 8 ND
- test wallet with windows workstation - just for SSL connection possibility - successfully
- on test node (2) we create selfsigned certificate- SSL certificate and key management > Key stores and certificates > NodeDefaultKeyStore > Personal certificates.
- place selfsigned certificate from DB wallet to SSL certificate and key management > Key stores and certificates > NodeDefaultTrustStore > Signer certificates.
- place selfsigned certificate from (4) to trusted in wallet. thus we exchange trusted certificate on both side.
- as connect string in new datasource we set jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcps)(HOST=dbhostname)(PORT=1543))(CONNECT_DATA=(SERVICE_NAME=dbservicename)))
at this point if we try test created datasource it fail with error at SystemOut.log:
[9/25/20 13:53:03:423 MSK] 0000006c SystemOut O Default : 2, WRITE: TLSv1.2 Handshake, length = 64
[9/25/20 13:53:03:423 MSK] 0000006c SystemOut O Default : 2, READ: TLSv1.2 Alert, length = 2
[9/25/20 13:53:03:423 MSK] 0000006c SystemOut O Default : 2, RECV TLSv1.2 ALERT: fatal, handshake_failure
[9/25/20 13:53:03:423 MSK] 0000006c SystemOut O Default : 2, fatal: engine already closed. Rethrowing javax.net.ssl.SSLException: Received fatal alert: handshake_failure
[9/25/20 13:53:03:423 MSK] 0000006c SystemOut O Default : 2, fatal: engine already closed. Rethrowing javax.net.ssl.SSLException: Received fatal alert: handshake_failure
[9/25/20 13:53:03:425 MSK] 0000006c DSConfigurati W DSRA8201W: DataSource Configuration: DSRA8040I: Failed to connect to the DataSource jdbc/SSL. Encountered java.sql.SQLRecoverableExcep
java.sql.SQLRecoverableException: IO Error: Received fatal alert: handshake_failure, connect lapse 9 ms., Authentication lapse 0 ms. DSRA0010E: SQL State = 08006, Error Code = 17,002
How it can be fixed?
------------------------------
Oleg SAgay
------------------------------