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 / May 2004

Tip: Looking for answers? Try searching our database.

use this one - Problem importing a private key into a keystore used by tomcat

Thread view: 
johndesp - 30 May 2004 18:00 GMT
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
Roedy Green - 30 May 2004 21:56 GMT
>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.



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.