...
Using the Java tool keytool you can create a self-signed certificate and a keystore in one step.
U
Info |
---|
|
Tip |
---|
|
Windows
Infocode | ||
---|---|---|
| ||
"%JAVA_HOME%\bin\keytool" -genkey -alias tomcat -keyalg RSA -keystore <path to keystore file> |
E.g.
Code Blockinfo | ||
---|---|---|
| ||
"%JAVA_HOME%\bin\keytool" -genkey -alias tomcat -keyalg RSA -keystore C:\app\secure\keystore |
Linux
Code Block | |
---|---|
| |
| |
$JAVA $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA -keystore <path to keystore file> |
E.g.
Code Blockinfo | ||
---|---|---|
| ||
$JAVA $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA -keystore /opt/secure/keystore |
Enter a keystore password when prompted - <keystorePasswd>
...