Oracle Weblogic Server importing SSL keys
In this post I'll share about commands that can be used to check/list/delete SSL certificates on your Weblogic Server.
List All SSL Keys
[ Syntax- keytool -list -keystore <PATH_CERTS> ]
For JRE Location
[root@eissdev01 oracle]# keytool -list -keystore /usr/java/jdk1.8.0_181-amd64/jre/lib/security/cacerts
CACERTS
List All SSL Keys
[ Syntax- keytool -list -keystore <PATH_CERTS> ]
For JRE Location
[root@eissdev01 oracle]# keytool -list -keystore /usr/java/jdk1.8.0_181-amd64/jre/lib/security/cacerts
For ORACLE_HOME> cacerts Location
[root@eissdev01 oracle]# keytool -list -keystore /u01/oracle/products/OIG_HOME/wlserver/server/lib/cacerts
For ORACLE_HOME >> DemoTrust.jks Location
[root@eissdev01 oracle]# keytool -list -keystore
/u01/oracle/products/OIG_HOME/wlserver/server/lib/DemoTrust.jks
Importing SSL Keys
[ Syntax- keytool -import -alias <ALIAS_NAME> -keystore <CACERTS_PATH> -file <*.CER CERTIFICATE_PATH> ]
[root@eissdev01 oracle]# keytool -import -alias mpowerGEOTRUST -keystore /usr/java/jdk1.8.0_181-amd64/jre/lib/security/cacerts -file /home/oracle/Desktop/sslKeys/geotrust.cer
Deleting SSL Keys
[ Syntax- keytool -delete -alias <ALIAS_NAME> -keystore <CACERTS_PATH>]
[root@eissdev01 oracle]# keytool -delete -alias mpowerGEOTRUST -keystore /usr/java/jdk1.8.0_181-amd64/jre/lib/security/cacerts
Default Values for KeyStore(s)
CACERTS
Property
|
Value
|
Keystore location
|
MW_HOME/wlserver_x.x/ server/lib/cacerts
|
Keystore password
|
changeit
|
DemoTrust.jks & DemoIdentity.jks
Property
|
Value
|
Truststore location
|
MW_HOME/wlserver_x.x/ server/lib/DemoTrust.jks
|
Truststore password
|
DemoTrustKeyStorePassPhrase
|
Keystore location
|
MW_HOME/wlserver_x.x/ server/lib/DemoIdentity.jks
|
Keystore password
|
DemoIdentityKeyStorePassPhrase
|
Private key password
|
DemoIdentityPassPhrase
|
Comments
Post a Comment