reading RSA public/private keys from keystore in jdk1.5
843811Jan 19 2006 — edited Jan 21 2006Hi,
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?