...
Create a Java Key Store to hold your SSL Certificate. You will need to update location to JDK, alias, and give appropriate path for the keystore location.
Code Block |
---|
/u01/java/jdk1.8.0_281jdk8/bin/keytool -genkey -alias mykeystorealias -keyalg RSA -keystore /home/oracle/flexdeploy.keystore |
...
Note |
---|
When you are importing the SSL certificate, the certificate alias must be different than the keystore alias. Otherwise you will see the error: keytool error: java.lang.Exception: Public keys in reply and keystore don’t match |
Code Block |
---|
/u01/java/jdk1.8.0_281jdk8/bin/keytool -import -alias myalias -file mycert.cer -keystore /home/oracle/flexdeploy.keystore |
To generate a self-signed certificate and import into the keystore, issue the following command, adjusting the paths and parameters as necessary.
Code Block |
---|
/u01/java/jdk1.8.0jdk8/bin/keytool -genkeypair -alias myalias -keyalg RSA -validity 365 -keysize 2048 -keystore /home/oracle/flexdeploy.keystore |
...