Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Using the Java tool keytool you can create a self-signed certificate and a keystore in one step.

U

Info

 

Tip

 

 

Windows

Infocode
languagepowershell
"%JAVA_HOME%\bin\keytool" -genkey -alias tomcat -keyalg RSA -keystore <path to keystore file>

E.g.

Code Blockinfo
languagepowershell
"%JAVA_HOME%\bin\keytool" -genkey -alias tomcat -keyalg RSA -keystore C:\app\secure\keystore

Linux

info
Code Block
language
bash
$JAVA $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA -keystore <path to keystore file>

E.g.

Code Blockinfo
languagebash
$JAVA $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA -keystore /opt/secure/keystore

 

 

Enter a keystore password when prompted - <keystorePasswd>

...