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!

NoSuchAlgorithmException :Algorithm SunX509 not available

843811Feb 22 2004 — edited Feb 23 2004

Hi

I have generated key pairs using Keytool utility and imported my digital certificate into Keystore file and trying to make use that key to sign the message.While doing so I am getting following Exception

Java.security.NoSuchAlgorithmException: Algorithm SunX509 not available.

The above exception was throwing at

KeyManagerFactory kmf= KeyManagerFactory.getInstance("SunX509") .

I have set classpath for 3 jar files i.e Jcert.JAR , jNET.JAR,jSSE.jar . Also adde these jar file in the lib directory.

I n my code I also adding providers dynamically with follwoing code.

Security.addProvider(new com.sun.net.ssl.internal.ssl.provider)

I am working on Websphere 4.01 application server.

Can you please help me what else I need to do to . Am I missing anything.

Thanks a lot.
JL
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 22 2004
Added on Feb 22 2004
2 comments
2,413 views