I have a certificate and a private key. I used keytool to create a
keystore with the certificate and alias of "tomcat". keytool does not
seem to provide a way to import a private key.
How can you import a private key into tomcat keystore.
I tried openssl using a command provided by Sudsy.
openssl pkcs12 -export
-in <signed_cert_filename>
-inkey <private_key_filename>
-name <alias>
-out <keystore_filename>
However, tomcat failed to negotiate ssl with the browser. I suspect
there is an incompatibility with openssl and keytool.
Also I do have pem file.
Thanks
>I tried openssl using a command provided by Sudsy.
>
[quoted text clipped - 3 lines]
> -name <alias>
> -out <keystore_filename>
Over in comp.lang.java.programmer you were given two techniques for
exporting a PKCS12 certificate containing the private key. Did either
of these work for you?
Now you have to import that cert back into you tomcat .keystore. Show
us what you typed to do that.
See http://mindprod.com/jgloss/keytool.html for general help on using
keytool.
Remember to give every import a unique alias.

Signature
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.