Thursday, May 16, 2013

Changing administration port for the admin to SSL

This WLST changes the admin's Adminstration port to 9002


(in the domain tab of the console, it's "SSL Listen Port Enabled" = true)

The only issue it that you should first shut down all managed servers. Then apply the change. otherwise you get the error "Cannot dynamically enable adminstration port on Managed servers when they are running"

Once you enable this Administrative port, all attempts to connect to the old port will fail with "Console/Management requests or requests with specified to 'true' can only be made through an administration channel"

After that, connecting with WLST can be problematic using t3s:

on WLST side: [Security:090542]Certificate chain received from - was not trusted causing SSL handshake failure. Check the certificate chain to determine if it should be trusted or not. If it should be trusted, then update the client trusted CA configuration to trust the CA certificate that signed the peer certificate chain. If you are connecting to a WLS server that is using demo certificates (the default WLS server behavior), and you want this client to trust demo certificates, then specify on the command line for this client.; No available router to destination]

on WebLogic Admin side:

####<May 16, 2013 6:01:07 PM CEST> <Warning> <Security> <hqchnesoa104> <osbpl1as> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <9455361429c2e897:4bba59a7:13eae0910e1:-8000-000000000000001f> <1368720067334> <BEA-090482> <BAD_CERTIFICATE alert was received from - Check the peer to determine why it rejected the certificate chain (trusted CA configuration, hostname verification). SSL debug tracing may be required to determine the exact reason the certificate was rejected.>

connect('weblogic', 'weblogic1', 't3s://')

I finally found how to make it work:

java -Dssl.debug=true weblogic.WLST

but you should rather consult Oracle Support Doc

"How to Enable the WebLogic Server Administration Port for WLST [ID 1511115.1]"
or also the WLST FAQ

With the enabled Administration port, communication with SSL requires the keystore be configured. For example:\oracle\Middleware\924\weblogic92\server\lib\DemoTrust.jks

The above Java properties can be set in the WLST_PROPERTIES system property, since the command runs like this:


eval '"${JAVA_HOME}/bin/java"' ${JVM_ARGS} weblogic.WLST '"$@"'

No comments: