How to connect to the default EM12c R3 self-signed WebLogic SSL port with WLST

After upgrading to Oracle Enterprise Manager 12c R3, I decided it was time to get roles configured properly for BI Publisher so that I can use it under my regular account rather than only permitting SYSMAN to access it.  Adeesh Fulay (@AdeeshF) helpfully provided me with a link to the documentation about setting up BI Publisher for EM12c.  The first step to perform the configuration involves connecting to the secured WebLogic adminserver via, but I immediately encountered an error:

wls:/offline> connect('weblogic', 'password', 't3s://')
Connecting to t3s:// with userid weblogic ...
<Jul 19, 2013 9:41:15 AM EDT> <Warning> <Security> <BEA-090542> <Certificate chain received from - x.x.x.x 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.> 
Traceback (innermost last):
  File "<console>", line 1, in ?
  File "<iostream>", line 22, in connect
  File "<iostream>", line 648, in raiseWLSTException
WLSTException: Error occured while performing connect : Error getting the initial context. There is no server running at t3s:// 
Use dumpStack() to view the full stacktrace

I could not find any obvious reference in the documentation on how to add the “” options on the command line.  I attempted to just run with that parameter but I also received an error.

After a little searching I found a fix and figured I would post it.

In the documentation for the WebLogic 10.3.6 Oracle WebLogic Scripting Tool, section “Invoking WLST”, an example is included where it shows how to provide a different command line option to the WLST tool, by setting the environment variable CONFIG_JVM_ARGS. (EDITED 20130719: Adeesh has let me know that the preferred environment variable to use for this string is WLST_PROPERTIES, not CONFIG_JVM_ARGS.  Both work at the moment, but the documentation will be updated to refer to WLST_PROPERTIES so I advise you to use that one.)

I tried that before making my call, and everything worked successfully:

oracle@host:~> export
oracle@host:~> /oracle/oem/Middleware12cR3/oracle_common/common/bin/ 
Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

wls:/offline> connect('weblogic', 'password', 't3s://')
Successfully connected to Admin Server 'EMGC_ADMINSERVER' that belongs to domain 'GCDomain'.wls:/GCDomain/serverConfig>

So if you are having trouble connecting to your WebLogic admin server using the default self-signed certificate via, this environment variable is the answer.  I was now able to proceed with granting my account access to BI Publisher, and now I am able to access BI Publisher features as needed without using the SYSMAN account.

wls:/GCDomain/serverConfig> grantAppRole(appStripe="obi",appRoleName="EMBIPViewer",principalClass="",principalName="USERNAME")    
Location changed to domainRuntime tree. This is a read-only tree with DomainMBean as the root. 
For more help, use help(domainRuntime)

wls:/GCDomain/serverConfig> grantAppRole(appStripe="obi",appRoleName="EMBIPAdministrator",principalClass="", principalName="USERNAME")                                                
Already in Domain Runtime Tree

wls:/GCDomain/serverConfig> grantAppRole(appStripe="obi",appRoleName="EMBIPScheduler",principalClass="", principalName="USERNAME")
Already in Domain Runtime Tree

wls:/GCDomain/serverConfig> grantAppRole(appStripe="obi",appRoleName="EMBIPAuthor",principalClass="", principalName="USERNAME")
Already in Domain Runtime Tree

wls:/GCDomain/serverConfig> exit()

Exiting WebLogic Scripting Tool.

4 thoughts on “How to connect to the default EM12c R3 self-signed WebLogic SSL port with WLST

  1. Maaz Anjum

    It’s a beautiful thing when you find an article that really helps you out. So, I stumbled upon your post after running into the same issue and attempted your fix, but to no avail. Until I looked further into the error via dumpStack(), I couldn’t figure it out!

    wls:/offline> connect(‘weblogic’, ‘pwd’, ‘t3s://as-sandbox-n1:7102’)
    wls:/offline> dumpStack() [Security:090504]Certificate chain received from as-sandbox-n1 – failed hostname verification check. Certificate contained but check expected as-sandbox-n1; No available router to destination]

    Well, the error says it all doesn’t it? Tried it with the fully qualified name (just like in your example) and presto it worked!

    wls:/offline> connect(‘weblogic’, ‘welcome1’, ‘t3s://’)
    Connecting to t3s:// with userid weblogic …
    Successfully connected to Admin Server ‘EMGC_ADMINSERVER’ that belongs to domain ‘GCDomain’.

    Thanks for sharing this one Brian!


  2. Pingback: How to connect to the default EM12c R3 self-sig...

  3. Sharang Dwivedi

    Thanks for this post. It really helped me to resolve this issue. I have provided Bi publisher access to one of the user
    grantAppRole(appStripe=”obi”,appRoleName=”EMBIPAdministrator”,principalClass=””, principalName=”username”)
    Here user is authenticated by AD SSO.
    Issue is provided privilege not replicating for this user when login to Bi Publisher.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s