Monday, 5 December 2016

SSL in Integrated Weblogic with Jdeveloper

I had some problems with the setting SSL Weblogic integrated with Jdeveloper on localhost. To enable SSL I had to:
Log on to the administration console and enable SSL for Weblogic. Click Environment -> Servers -> DefaultServer (or another server name). Set to 'SSL Listen Port Enabled "and set the port for SSL (eg. 7002):


Then in JDeveloper go to the "Applications Servers", right click on the "IntegratedWeblogicServer" properties and in the tab "Configuration" set the same port number in the SSL port and mark the checkbox "Always use SSL."
But when you restart your WebLogic and you type "https://localhost:7002/console will you could see:


When I run the server with parameters: -Dweblogic.Stdout Debug Enabled = true -Dssl.debug = true -Djavax.net.debug = ssl
in logs appears:


<2016-12-05 17:02:49 CET> <Debug> <SecuritySSL> <BEA-000000> <write ALERT, offset = 0, length = 2> 
<2016-12-05 17:02:49 CET> <Debug> <SecuritySSL> <BEA-000000> <HANDSHAKEMESSAGE: ClientHello> 
<2016-12-05 17:02:49 CET> <Debug> <SecuritySSL> <BEA-000000> <close(): 29237695> 
<2016-12-05 17:02:49 CET> <Debug> <SecuritySSL> <BEA-000000> <close(): 29237695> 
<2016-12-05 17:02:49 CET> <Debug> <SecuritySSL> <BEA-000000> <SSLIOContextTable.removeContext(ctx): 3075174> 
<2016-12-05 17:02:49 CET> <Debug> <SecuritySSL> <BEA-000000> <NEW ALERT with Severity: FATAL, Type: 40
java.lang.Exception: New alert stack
 at com.certicom.tls.record.alert.Alert.<init>(Unknown Source)
 at com.certicom.tls.record.handshake.HandshakeHandler.handleHandshakeMessages(Unknown Source)
 at com.certicom.tls.record.MessageInterpreter.interpretContent(Unknown Source)
 at com.certicom.tls.record.MessageInterpreter.decryptMessage(Unknown Source)
 at com.certicom.tls.record.ReadHandler.processRecord(Unknown Source)
 at com.certicom.tls.record.ReadHandler.readRecord(Unknown Source)
 at com.certicom.tls.record.ReadHandler.readUntilHandshakeComplete(Unknown Source)
 at com.certicom.tls.interfaceimpl.TLSConnectionImpl.completeHandshake(Unknown Source)
 at javax.net.ssl.impl.SSLSocketImpl.startHandshake(Unknown Source)
 at weblogic.server.channels.DynamicSSLListenThread$1.run(DynamicSSLListenThread.java:130)
 at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
 at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)


What tells us, that ssl handshake does not work properly. To correct this, you must enter the console:
  Environment -> Servers -> DefaultServer (or another name). -> ssl -> advanced and select "use JSSE SSL"




 With restart the server and entering: https://localhost:7002/console console now should appear

No comments:

Post a Comment