Hello. This might be totaly wrong forum for my question or I might be thinking totally wrong please forgive me then.
I have a java keystore and want to export the private key and certificate (Verisign 128-bits) in it for use with Apache (we are changing server from a java-based server to Apache (mod_ssl)). Apache works like a dream when tested (compared to .... java.) with OpenSSL made keys and cert. I do like this in Java to dump the key from out Java keystore: .... RSAPrivateCrtKey k = (RSAPrivateCrtKey) keystore.getKey("alias", "password".toCharArray()); FileOutputStream fo = new FileOutputStream("veri.pkcs8.cer"); fo.write(k.getEncoded()); fo.flush(); fo.close(); fo = null; ..... The raw bytestream out from Java is supposedly PKCS8. And OpenSSL wants PEM encoding?? Well. I am pretty new with all this.... But when I try use $> "OpenSSL rsa -in ... -outform PEM ...." (to convert) I only get: "unable to load key ...." Has anyone done this or can anyone tell me if I am on the right track or even tell me how. Thanks Tomas. __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]