Hi, Isvaran,

The Commons-SSL "KeyStoreBuilder" utility might help you.

http://juliusdavies.ca/commons-ssl/utilities.html

You could also take a look at the PKCS8Key, PEMUtil and PEMItem classes.

http://juliusdavies.ca/commons-ssl/javadocs/


Good luck!

yours,

Julius




On 11/27/06, Dr. Stephen Henson wrote:
> On Mon, Nov 27, 2006, Isvaran Krishnamurthy wrote:
>
> > Hi,
> >
> > I have a requirement to read a PEM file and import it in to a java JKS
> > store.
> > I am looking at a pure java solution (no JNI / library dependancy).
> > I need to know the format of the PEM file and the relationship between
> > each entry in the PEM file (if any).
> > I tried to find documentation of the PEM format on the web to no avail.
> > I would greatly appreciate it if any of you fine folks would help me out
> > by providing info on the PEM file format.
> >

>
> There is extensive information in the pem manual page describing the main
> format, the encoded structures and the various types of encryption used. This
> is in every OpenSSL distribution or at:
>
> http://www.openssl.org/docs/crypto/pem.html
>
> Steve.
> --
> Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage
> OpenSSL project core developer and freelance consultant.
> Funding needed! Details on homepage.
> Homepage: http://www.drh-consultancy.demon.co.uk
> __________________________________________________ ____________________
> OpenSSL Project http://www.openssl.org
> Development Mailing List openssl-dev@openssl.org
> Automated List Manager majordomo@openssl.org
>



--
yours,

Julius Davies
416-652-0183
http://juliusdavies.ca/
__________________________________________________ ____________________
OpenSSL Project http://www.openssl.org
Development Mailing List openssl-dev@openssl.org
Automated List Manager majordomo@openssl.org