Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

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);

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on May 22 2024
Added on Dec 30 2013
0 comments
1,733 views