activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shameem <shameem.peerbucc...@gmail.com>
Subject Configuring SSL with No TrustStore and Using Simple Authentication (Username/Password)
Date Mon, 02 Jun 2014 16:19:00 GMT
I need help to configure activemq ssl without any truststore instead use
username and password for authentication.

I am getting the exception as no trusStore is provided:
Exception in thread "main" javax.jms.JMSException: Could not create
Transport. Reason: java.lang.NullPointerException
	at
org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:35)
	at
org.apache.activemq.ActiveMQSslConnectionFactory.createTransport(ActiveMQSslConnectionFactory.java:123)
	at
org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:267)
	at
org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:239)
	at
org.apache.activemq.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:185)


Below is my configuration:

<transportConnector name="ssl"
uri="ssl://0.0.0.0:61617?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600&amp;transport.needClientAuth=true&amp;transport.wantClientAuth=false"/>

<sslContext>
    <sslContext keyStore="/home/shameem/dev/tools/activemq/broker.ks"
keyStorePassword="password" />
</sslContext>

My Spring configuration:

 <bean id="jmsConnectionFactory"
	   class="org.apache.activemq.ActiveMQSslConnectionFactory">
        <property name="brokerURL" value="ssl://localhost:61617" />
        <property name="userName" value="admin"/>
        <property name="password" value="admin"/>
  </bean>





--
View this message in context: http://activemq.2283324.n4.nabble.com/Configuring-SSL-with-No-TrustStore-and-Using-Simple-Authentication-Username-Password-tp4681580.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message