Oracle Community Directory
Oracle Community FAQ
Go Directly To
Oracle Technology Network Community
My Oracle Support Community
OPN Cloud Connection
Oracle Employee Community
Oracle User Group Community
OTN Speaker Bureau
Please enter a title.
You can not post a blank message. Please type your message and try again.
This discussion is archived
: Mar 29, 2012 11:42 PM by
loading keystore within Oracle 10g
Mar 28, 2012 6:46 AM
i am facing troubles when I try to load keystore and create certificate within Oracle 10g. Java version is 1.4.2.. On my localhost it works fine, but after I load the classes and resources to db, it gives me:
java.security.spec.InvalidKeySpecException: Unknown key spec.
java.security.cert.CertificateParsingException: java.io.IOException: subject key, java.security.spec.InvalidKeySpecException: Unknown key spec.
The code looks like this:
KeyStore keystore = KeyStore.getInstance("JKS", "IBMJCE");
File file = new File("somekeystore.jks");
InputStream is = new FileInputStream(file);
cert = keystore.getCertificate(aliasKey);
privateKey = (PrivateKey) keystore.getKey(aliasKey, pwdPrivateKey.toCharArray());
Do you have some ideas, please?
This content has been marked as final.
Show 1 reply
Re: loading keystore within Oracle 10g
Mar 29, 2012 11:42 PM
in response to
Can you provide the specific line number at which the exception is being thrown? Have you ever had this working inside the DB-engine's JVM before?