Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Security / December 2004

Tip: Looking for answers? Try searching our database.

Getting rsa key and x509 cert into keystore

Thread view: 
Paul - 23 Sep 2004 18:18 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
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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.