Skip to content

Instantly share code, notes, and snippets.

@xboard
Last active May 22, 2018 13:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xboard/229eb87e4b641adb493076008a73803f to your computer and use it in GitHub Desktop.
Save xboard/229eb87e4b641adb493076008a73803f to your computer and use it in GitHub Desktop.
Java keytool self signate certificate generation - 10 years validity
C:\Users\xboard>"%JAVA_HOME%\bin\keytool" -genkey -alias tomcat -keyalg RSA
-keystore d:\Apps\apache-tomcat-7.0.68\certs\keystore.jks -validity 3650 -keysize 2048
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment