• 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