I have two private-key/certificate pairs in a keystore (created using
keytool).
I want to sign one of them using the other one (the other one's private key
of
course). I'm using Java 1.5. I can't
seem to figure out how to do this from the javadocs. Can someone point
me in the right direction? Thanks.
Steve Buroff
Tommy Grändefors - 21 Jun 2005 09:25 GMT
One solution is to use the Bouncy Castle JCE provider for this. See the
following file in their source code package:
src/org/bouncycastle/jce/examples/PKCS12Example.java
You can get some hints from this thread:
http://groups-beta.google.com/group/comp.lang.java.security/browse_thread/thread
/7c4ead0fd85ee047/b012170e7e3283b2
Regards,
Tommy
www.pheox.com