Skip to content

Instantly share code, notes, and snippets.

@n9986
Created April 24, 2016 17:20
Show Gist options
  • Save n9986/30e616c31fd29f75c3c58ce5df7ef622 to your computer and use it in GitHub Desktop.
Save n9986/30e616c31fd29f75c3c58ce5df7ef622 to your computer and use it in GitHub Desktop.
Some steps for using KeyTool to generate a key + csr + cer files

Some steps for using KeyTool

keytool -keystore keystore -genkey -alias private -keyalg RSA

keytool -keystore keystore -certreq -alias private -keyalg rsa -file client.csr

keytool -import -keystore keystore -file ca.pem  -alias ca 

# And after signing the certificate request
keytool -import -keystore keystore -file client.cer -alias public
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment