-
1. Use Default Java Keystore for NettyConnectorFactory
ataylor Mar 29, 2011 9:50 AM (in response to hmr_mueller)not at present, but its a feature we should have, feel free to raise a jira. A patch should be quite easy to write if you want to provide a patch as well.
-
2. Use Default Java Keystore for NettyConnectorFactory
greyfairer2 May 5, 2011 7:36 AM (in response to hmr_mueller)A workaround is to ignore the server side configuration and set up the ConnectionFactory from the client.
HashMap<String, Object> connectionProperties = new HashMap<String, Object>();
connectionProperties.put(TransportConstants.HOST_PROP_NAME, "local.hornetq.acme.com");
connectionProperties.put(TransportConstants.PORT_PROP_NAME, 443);
connectionProperties.put(TransportConstants.SSL_ENABLED_PROP_NAME, "true");
connectionProperties.put(TransportConstants.KEYSTORE_PATH_PROP_NAME, "file://.../truststore.jks");
connectionProperties.put(TransportConstants.KEYSTORE_PASSWORD_PROP_NAME, "changethis");
connectionProperties.put(TransportConstants.USE_SERVLET_PROP_NAME, "true");
connectionProperties.put(TransportConstants.SERVLET_PATH, "/messaging/HornetQServlet");
ClientSessionFactory sf = HornetQClient.createClientSessionFactory(new TransportConfiguration(NettyConnectorFactory.class.getName(), connectionProperties));
ConnectionFactory cf = new HornetQConnectionFactory(sf);
-
3. Re: Use Default Java Keystore for NettyConnectorFactory
ybxiang.china Oct 16, 2012 8:50 PM (in response to greyfairer2)A workaround is to ignore the server side configuration and set up the ConnectionFactory from the client.
~~~~~~~~This workaround is HornetQ-Client specified.
Is there a workaround for JMS client?
-
4. Re: Use Default Java Keystore for NettyConnectorFactory
greyfairer2 Oct 21, 2012 4:37 PM (in response to ybxiang.china)In hornetq 2.3.0.Final, the ConnectionFactory will also check system properties javax.net.ssl.keyStore and javax.net.ssl.keyStorePassword. See https://github.com/hornetq/hornetq/pull/558/files. So I guess that works if you do a JNDI lookup as well (pure JMS client).