IntelliJ Java IDE
The moose likes Other JSE/JEE APIs and the fly likes Keytool Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Reply Bookmark "Keytool" Watch "Keytool" New topic
Author

Keytool

Mark Herschberg
Sheriff

Joined: Dec 04, 2000
Posts: 6035
I am using certicom's security builder package for my crypto implementation. (It uses ECC, but I don't think that should make a difference here.) We have certicom as a provider, and are trying to use the Keytool to generate a certificate. It isn't working.
Certicom claims that although they meet the provider API, Keytool requires a difference interface which they do not meet. This surprises me, since I would have thought that Keytool simply uses the JCE APIs to do it's work. ANyone know how Keytool works?
When we do run Keytool, it complains that it can't find a signature algorithm. We have both tries specifying a signature algorithm as well as not specifying one, and letting the tool try to find one. Perhaps the signature algorithm isn't defined in some configuration file of Certicom's, certainly the algorithm exists.
Any thoughts?

--Mark
Lewin Chan
Ranch Hand

Joined: Oct 10, 2001
Posts: 214
Mark
Keytool is just a wrapper around JCE api, so you should be able to use certicom as the provider...
When you run keytool, you should add certicom as a provider. you can do this by using
keytool -genkey
-sigalg "MD5withRSA"
-provider "com.certicom.SecurityProvider()"
-alias "myAlias" etc. etc.
I'm not sure if keytool will use the security.provider flag in the java.security file in $JAVA_HOME/jre/lib/security
--Lewin

I have no java certifications. <br />This makes me a bad programmer.<br />Ignore my post.
 
 
subject: Keytool
 
Threads others viewed
Signing email - FIPS 140-2 compliant
int[] find(String[] criteria) {}
java JCE version compatibility
Default keystore(s) used for HTTPS?
Create SHA2 CSR with keytool
IntelliJ Java IDE

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture