10 Replies Latest reply on Jan 7, 2004 2:20 PM by adrian.brock

    JMS, HTTPS, HTTPQueueConnection

    mkprim

      I'm trying to configure JMS over HTTPS, but i'm not sure if i'm using the correct solution.

      I've already seen this post
      http://www.jboss.org/index.html?module=bb&op=viewtopic&t=39049
      that uses a UIL2Connector with a SSL server socket, but haven't tried it.

      I did use the HTTPQueueConnector, and configured it over HTTPS in two files but I get somm errors.

      Here are my xmls that i changed:
      in deploy/jms/jbossmq-httpil.sar/META-INF/jboss-service.xml:

      0
      https://192.168.7.192/jbossmq-httpil/HTTPServerILServlet
      https:/
      jbossmq-httpil/HTTPServerILServlet
      443
      192.168.7.192



      in deploy/jbossweb-tomcat41.sar/META-INF/jboss-service.xmll:




      local.keystore
      apache


      ..............
      <!-- SSL/TLS Connector configuration using the SSL domain keystore -->





      Here is the error:
      org.jboss.mq.SpyJMSException: Cannot authenticate user; - nested throwable: (java.io.IOException: HTTPS hostname wrong: should be <192.168.7.192>)
      at org.jboss.mq.Connection.authenticate(Connection.java:883)
      at org.jboss.mq.Connection.(Connection.java:238)
      at org.jboss.mq.SpyConnection.(SpyConnection.java:49)
      at org.jboss.mq.SpyConnectionFactory.createQueueConnection(SpyConnectionFactory.java:135)
      at com.primary.common.communications.jms.Connector.connect(Connector.java:71)
      at com.primary.common.communications.jms.ConnectorClient.connect(ConnectorClient.java:38)
      .......................

      Caused by: java.io.IOException: HTTPS hostname wrong: should be <192.168.7.192>
      at sun.net.www.protocol.https.HttpsClient.b(DashoA6275)
      at sun.net.www.protocol.https.HttpsClient.afterConnect(DashoA6275)
      at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(DashoA6275)
      at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:558)
      at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(DashoA6275)
      at org.jboss.mq.il.http.HTTPClient.post(HTTPClient.java:119)
      at org.jboss.mq.il.http.HTTPServerIL.postRequest(HTTPServerIL.java:371)
      at org.jboss.mq.il.http.HTTPServerIL.authenticate(HTTPServerIL.java:108)
      at org.jboss.mq.Connection.authenticate(Connection.java:876)
      ... 18 more
      com.primary.common.communications.ConnectionException: Cannot authenticate user; - nested throwable: (java.io.IOException: HTTPS hostname wrong: should be <192.168.7.192>)
      at com.primary.common.communications.jms.Connector.connect(Connector.java:78)
      at ............

      Any ideas about which configuration (this or the other) should I use?
      Thanks a lot.
      Marcelo