【问题标题】:How to connect to WbLogic JMS queue using t3s via full client with two way SSL authentication?如何通过具有两种 SSL 身份验证的完整客户端使用 t3s 连接到 WebLogic JMS 队列?
【发布时间】:2011-08-22 18:12:03
【问题描述】:

我已经为此苦苦挣扎了好几天了。我在 Windows 上使用 WebLogic 11g (10.3.4.0)(Linux 行为相同)。我已经根据http://emo.sourceforge.net/cert-login-howto.html 和http://middlewareforum.com/weblogic/?p=312 的详细信息设置了两种方式的SSL 身份验证。我使用 JMeter 作为具有以下 JVM 参数的客户端。独立 Java 客户端的行为相同。

-Djavax.net.ssl.keyStoreType=pkcs12 -Djavax.net.ssl.trustStoreType=jks -Djavax.net.ssl.keyStore=c:/Users/sli/keys/browser.p12 -Djavax.net.debug =ssl -Djavax.net.ssl.keyStorePassword=PASSWORD-Djavax.net.ssl.trustStorePassword=changeit -Dweblogic.security.SSL.ignoreHostnameVerification=true

它与 t3 瘦客户端 (wlthint3client.jar) 一起工作正常,但当我切换到完整客户端 (wlfullclient.jar) 时它不起作用。其中一个应用程序不知何故卡在了完整的客户端上。这本身就是一个不同的问题。顺便说一句,完整的客户端并不完整,因为它需要用于 SSL 的 webserviceclient+ssl.jar 和 cryptoj.jar。它抱怨跟随客户。

javax.naming.CommunicationException [根异常是 java.net.ConnectException: t3s://localhost:7503: Destination unreachable;嵌套异常是: com.bea.sslplus.TwoWaySSLHandshakeStageSocketException:2 次握手期间的 SocketException;检查客户端证书或网络连接;目的地没有可用的路由器]

这是服务器端日志。

(来源不明) 在 com.certicom.tls.record.handshake.HandshakeHandler.fireAlert(未知来源) 在 com.certicom.tls.record.handshake.ServerStateSentHelloDone.handle(未知来源) 在 com.certicom.tls.record.handshake.HandshakeHandler.handleHandshakeMessage(未知来源) 在 com.certicom.tls.record.handshake.HandshakeHandler.handleHandshakeMessages(未知来源) 在 com.certicom.tls.record.MessageInterpreter.interpretContent(未知来源) 在 com.certicom.tls.record.MessageInterpreter.decryptMessage(未知来源) 在 com.certicom.tls.record.ReadHandler.processRecord(未知来源) 在 com.certicom.tls.record.ReadHandler.readRecord(未知来源) 在 com.certicom.tls.record.ReadHandler.readUntilHandshakeComplete(未知来源) 在 com.certicom.tls.interfaceimpl.TLSConnectionImpl.completeHandshake(未知来源) 在 javax.net.ssl.impl.SSLSocketImpl.startHandshake(未知来源) 在 weblogic.server.channels.DynamicSSLListenThread$1.run(DynamicSSLListenThread.java:130) 在 weblogic.work.ExecuteThread.execute(ExecuteThread.java:207) 在 weblogic.work.ExecuteThread.run(ExecuteThread.java:176) > (来源不明) 在 com.certicom.tls.record.handshake.HandshakeHandler.fireAlert(未知来源) 在 com.certicom.tls.record.handshake.ServerStateSentHelloDone.handle(未知来源) 在 com.certicom.tls.record.handshake.HandshakeHandler.handleHandshakeMessage(未知来源) 在 com.certicom.tls.record.handshake.HandshakeHandler.handleHandshakeMessages(未知来源) 在 com.certicom.tls.record.MessageInterpreter.interpretContent(未知来源) 在 com.certicom.tls.record.MessageInterpreter.decryptMessage(未知来源) 在 com.certicom.tls.record.ReadHandler.processRecord(未知来源) 在 com.certicom.tls.record.ReadHandler.readRecord(未知来源) 在 com.certicom.tls.record.ReadHandler.readUntilHandshakeComplete(未知来源) 在 com.certicom.tls.interfaceimpl.TLSConnectionImpl.completeHandshake(未知来源) 在 javax.net.ssl.impl.SSLSocketImpl.startHandshake(未知来源) 在 weblogic.server.channels.DynamicSSLListenThread$1.run(DynamicSSLListenThread.java:130) 在 weblogic.work.ExecuteThread.execute(ExecuteThread.java:207) 在 weblogic.work.ExecuteThread.run(ExecuteThread.java:176) >

我做了一些研究,发现有人让它工作了(http://stackoverflow.com/questions/2047732/solaris-jms-client-connect-to-weblogic-11g-t3s-security-problem)在 t3s 上使用完整客户端进行两种 SSL 身份验证,但链接没有提供如何。我也尝试使用那里提到的 WebLogic 安全选项,但它仍然对我不起作用。

感谢您的任何帮助。

【问题讨论】:

    标签: ssl client jms weblogic


    【解决方案1】:

    在为wlfullclient 设置 SSL 时,您必须使用这些属性:

    -Dweblogic.security.TrustKeyStore=CustomTrust -Dweblogic.security.CustomTrustKeyStoreFileName=....
    

    搜索weblogic.security.TrustKeyStore 以查找所有相关设置。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-08-24
      • 2021-04-22
      • 1970-01-01
      • 1970-01-01
      • 2015-04-10
      • 1970-01-01
      • 2010-12-05
      • 2012-12-15
      相关资源
      最近更新 更多