This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Importing certificate into keystore.

 
Dave Trower
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a certificate that I want to import into the keystore using the java keytool command. Can this be done? It seems like the keytool command onlty allows you to create certificates or import CA certificates.
 
Freddy Wong
Ranch Hand
Posts: 959
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, you surely can do that. To import a certificate, you can use this command:


To import a CA cert, you normally do this:


To make a certificate chain, first you need to generate a key first.

then after your cert has been signed by the CA, you need to import it to make a certificate chain.

Remember, to make a certificate chain, you must import it with the same alias as the key that you generated.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic