A.4 Run wlevs.Admin Utility in SSL Mode

To use SSL when using the wlevs.Admin command-line utility, you must first create a trust key store.

For more information, see SSL to Secure Network Traffic.

Run wlevs.Admin utility in SSL Mode

  1. If not already running, start the Oracle Stream Analytics server.
  2. Change to ssl directory.

    By default the ssl directory is in Oracle/Middleware/my_oep/user_projects/domains/<domainname>/<servername>.

  3. Generate a trust key store by specifying the following command on one line:
    java -classpath Oracle\Middleware\my_oep\oep\
    common\lib\evspath.jar;Oracle\Middleware\my_oep\oep\utils\security\
    wlevsgrabcert.jar com.bea.wlevs.security.util.GrabCert host:secureport 
    -alias=alias truststorepath
    

    host: The computer on which myServer2 is running.

    secureport: The SSL network I/O port configured for myServer2. The default value is 9003. For more information, see Configure SSL Manually.

    alias: The alias for the certificate in the trust key store. Default value is the host name.

    truststorepath: The full path name of the generated trust key store file. The default is evstrust.jks.

    For example:

    java -classpath C:\Oracle\Middleware\my_oep\oep\
    common\lib\evspath.jar;C:\Oracle\Middleware\my_oep\utils\security\
    wlevsgrabcert.jar com.bea.wlevs.security.util.GrabCert myServer2:9003 -alias=myServer2 evstrust.jks
    
  4. Use the following properties and specify the secure port in the URL as shown in the following example.

    -Djavax.net.ssl.trustStore: The name of the trust key store file you created in the preceding step.

    -Djavax.net.ssl.trustStorePassword: The password of the trust key store file.

    java -Djavax.net.ssl.trustStore=clitrust.jks
         -Djavax.net.ssl.trustStorePassword=secret 
         -jar wlevsadmin.jar
         -url service:jmx:msarmis://localhost:9003/jndi/jmxconnector
         -username wlevs -password wlevs
         SHUTDOWN -scheduleAt 600