Configuring your Java client to use an SSL connection

You may configure the Java client to use a Secure Sockets Layer (SSL) connection. See the documentation for WebLogic for more information.

To configure Java to use an SSL connection:

  1. In order to use an SSL connection, include the following jar files in you classpath:
    • wlfullclient.jar
    • wlcipher.jar (This can be found in the <WL_HOME>/server/lib (e.g. C:\Oracle\Middleware\wlserver_10.3\server\lib).)
    1. To obtain the jar file wlfullclient.jar, run java –jar wljarbuilder.jar in <WL_HOME>/server/lib.
    2. To obtain the provider URL, you can use either t3s:// or iiops:// protocol (t3 or iiop over SSL).

      Note: Use the SSL port (7002 by default).

  2. To obtain the keystore file that contains the server's certificate:
    1. Export the server's certificate from the browser to a certificate file.
    2. Import the certificate file into your keystore using java's keytool:
      • keytool -import -trustcacerts -alias demotrust -file server_cert.crt -keystore mykeystore.jks
  3. When running the client, specify the following parameters:
    • Dweblogic.security.TrustKeyStore=CustomTrust
    • Dweblogic.security.CustomTrustKeyStoreFileName=mykeystore.jks
    • Dweblogic.security.CustomTrustKeyStorePassPhrase=<your keystore password>
    • (Optional) Dweblogic.security.SSL.ignoreHostnameVerification=true (Specify this parameter to ignore hostname verification.)

Related Topics

Using Events with an SSL Connection

Configuring a WebLogic Deployment of P6 to Use an SSL connection



Last Published Monday, November 4, 2024