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!

reading RSA public/private keys from keystore in jdk1.5

843811Jan 19 2006 — edited Jan 21 2006
Hi,

This one is probably easy but I'm blinded somehow. Using jdk1.5_05 with out-of-the-box providers

security.provider.1=sun.security.provider.Sun
security.provider.2=sun.security.rsa.SunRsaSign
security.provider.3=com.sun.net.ssl.internal.ssl.Provider
security.provider.4=com.sun.crypto.provider.SunJCE
security.provider.5=sun.security.jgss.SunProvider
security.provider.6=com.sun.security.sasl.Provider

I have a program that should read public keys from sertificates imported into a keystore,but am unable to read keys created with RSA. Naturally same thing with private keys. DSA keys work, but RSA keys cause error: No installed provider supports this key: sun.security.rsa.RSAPublicKeyImpl. I tried importing certificate into JKS and JCEKS but same result. Shouldn't RSA be available using SunJCE?

I am hoping to be able to use tools bundled in jdk, is this possible?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 18 2006
Added on Jan 19 2006
4 comments
505 views