I would like to create an RSA key pair and an X509 cert and store both
of them in a JCA/JCE Key Store in Java2 SDK 1_4_2. I intend to use
them in another program to sign and encrypt xml documents.
I have figured out how to generate the RSA key pair using the
java.security package but I can't see any way to use it to create the
X509 cert.
Optionally, I can create the key pair and cert using openssl. Then I
can see how to import the cert from a file but not how to import the
RSA key pair from a file.
Sort of a catch22 here. I must be missing something very basic. Can
someone give me some guidance or point me to the correct place in any
documentation.
Thanks,
Paul
Rogan Dawes - 04 Oct 2004 09:22 GMT
> I would like to create an RSA key pair and an X509 cert and store both
> of them in a JCA/JCE Key Store in Java2 SDK 1_4_2. I intend to use
[quoted text clipped - 14 lines]
> Thanks,
> Paul
Use the KeyTool that comes as part of the Java SDK (possibly also the
JRE) to create your X.509 cert
Rogan

Signature
Rogan Dawes
*ALL* messages to discard@dawes.za.net will be dropped, and added
to my blacklist. Please respond to "nntp AT dawes DOT za DOT net"
Sebastian Hentschel - 15 Dec 2004 15:18 GMT
I am using JDKPKCS12KeyStore from bouncy Castle
and for me it works fine
http://www.bouncycastle.org/docs/docs1.4/index.html
KeyStore ks = KeyStore.getInstance("PKCS12");
should create it.
Hope it helps
> I would like to create an RSA key pair and an X509 cert and store both
> of them in a JCA/JCE Key Store in Java2 SDK 1_4_2. I intend to use
[quoted text clipped - 14 lines]
> Thanks,
> Paul