Forum Stats

  • 3,838,727 Users
  • 2,262,395 Discussions
  • 7,900,741 Comments

Discussions

using certificates to connect to Oracle database through jdbc java

I found the following link (http://www.oracle.com/technetwork/database/enterprise-edition/wp-oracle-jdbc-thin-ssl-130128.pdf)  examples of how to connect to oracle database using digital certificates, however the example shows only the PKCS12 certificates (pfx or p12 file) format. My clients all use smart card certificates (PKCS11 format). The example says that I should set the settings in a class of properties passing the physical path of the certificate, however as I do that for smart card certificates?

Example link

props.setProperty("javax.net.ssl.keyStore", "D:\\client_jks\\keystore.jks");

props.setProperty("javax.net.ssl.keyStoreType","JKS");

props.setProperty("javax.net.ssl.keyStorePassword","welcome123");

Connection conn = DriverManager.getConnection (url, props);
Tagged:
This discussion has been closed.