Skip to Main Content

Java Security

using certificates to connect to Oracle database through jdbc java

1062106Dec 30 2013

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);
Post Details
Locked on Jan 27 2014
Added on Dec 30 2013
0 comments
1,163 views