Weblogic AdminServer with SSL configurations
Steps to enable SSL configurations for all Admin Server tasks:
1) Enable SSL port using weblogic Admin console
source $WL_HOME/server/bin/setWLSEnv.sh
1) Enable SSL port using weblogic Admin console
Home >Summary of Servers >adminserver > General > SSL Listen Port Enabled
2) Upload the custom SSL keystore certificate in Keystores tab section:
Keystores: Custom Identity and Custom Trust
Custom Identity Keystore: <path to keystore>
Custom Identity Keystore Passphrase: <password>
Custom Identity Keystore Passphrase: <password>
3) Update the Truststore alias and passwords in SSL tab section
Identity and Trust Locations: Keystore
Private Key Location: from Custom Identity Keystore
Private Key Alias: <alias name>
Private Key Passphrase: <password>
4) Update the custom wlctl or WLST command scripts to use SSL protocol instead of non-ssl protocol.
-Dweblogic.security.TrustKeyStore=CustomTrust
-Dweblogic.security.CustomTrustKeyStoreType=JKS
-Dweblogic.security.SSL.ignoreHostnameVerification=true
-Dweblogic.security.TrustKeystoreType=CustomTrust
-Dweblogic.security.CustomTrustKeyStoreFileName=<path to keystore>
-Dweblogic.security.CustomTrustKeystorePassPhrase=<password>
Example weblogic deployer command:
export WL_HOME=/data/apps/weblogic/
source $WL_HOME/user_projects/domains/basedomain/bin/setDomainEnv.shsource $WL_HOME/server/bin/setWLSEnv.sh
java -Dweblogic.security.TrustKeyStore=CustomTrust - Dweblogic.security.CustomTrustKeyStoreType=JKS -Dweblogic.security.SSL.ignoreHostnameVerification=true -Dweblogic.security.TrustKeystoreType=CustomTrust -Dweblogic.security.CustomTrustKeyStoreFileName=/data/apps/weblogic/keystore/.keystore -Dweblogic.security.CustomTrustKeystorePassPhrase=test123 weblogic.Deployer -adminurl t3s://localhost:8001 -user weblogic -password Admin123 -deploy -name services -targets managedserver1 -source /data/apps/weblogic/ear/services.ear
Comments
Post a Comment