Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- java.sql.SQLRecoverableException: IO Error: Inbound closed before receiving peer's close_notify: possible truncation attack?, connect lapse 15 ms., Authentication lapse 0 ms.
- public static void main(String[] args) {
- new oracle.security.pki.OraclePKIProvider();
- Security.addProvider(new oracle.security.pki.OraclePKIProvider());
- String url = "jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcps)(HOST=localhost)(PORT=2484))(CONNECT_DATA=(SERVICE_NAME=ORCL)))";
- Properties props = new Properties();
- props.setProperty("javax.net.ssl.trustStore",
- "C:\app\Administrator\virtual\product\12.2.0\dbhome_1\bin\wallets\Administrator\cwallet.sso");
- props.setProperty("javax.net.ssl.trustStoreType","SSO");
- props.setProperty("javax.net.ssl.keyStore",
- "C:\app\Administrator\virtual\product\12.2.0\dbhome_1\bin\wallets\Administrator\cwallet.sso");
- props.setProperty("javax.net.ssl.keyStoreType","SSO");
- try {
- Connection conn = DriverManager.getConnection(url, props);
- } catch (SQLException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- }
- WALLET_LOCATION=(SOURCE=(METHOD=FILE) (METHOD_DATA=(DIRECTORY=C:appAdministratorvirtualproduct12.2.0dbhome_1binwalletsAdministratorewallet.p12 ))
- SSL_CLIENT_AUTHENTICATION=TRUE
- security.provider.11=oracle.security.pki.OraclePKIProvider
Add Comment
Please, Sign In to add comment