我已经为Apache ActiveMQ服务器以及Client进行了SSL配置,但工作正常,但是当我在Wireshark工具中签入时,它仍显示TCP。
为什么Wireshark工具将协议显示为TCP而不是TLS?我的配置有任何问题或缺少任何其他配置?
<sslContext>
<sslContext keyStore="file:${activemq.conf}/broker.ks"
keyStorePassword="password"
trustStore="file:${activemq.conf}/broker.ts"
trustStorePassword="password"/>
</sslContext>
<transportConnectors>
<transportConnector name="openwire" uri="tcp://localhost:61616?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
<transportConnector name="ssl"
uri="ssl://localhost:61714?transport.enabledProtocols=TLSv1,TLSv1.1,TLSv1.2&needClientAuth=true" />
</transportConnectors>
<shutdownHooks>
<bean xmlns="http://www.springframework.org/schema/beans" class="org.apache.activemq.hooks.SpringContextHook"/>
</shutdownHooks>
ActiveMQSslConnectionFactory connectionFactory = new ActiveMQSslConnectionFactory("ssl://localhost:61714?socket.enabledProtocols=TLSv1,SSLv2");
connectionFactory.setUserName(user);
connectionFactory.setPassword(password);
//Log.addInLog(Log.DBG, "ActiveMQ Connection url: "+url);
connectionFactory.setKeyStore(new File("../apache-activemq-5.13.0/conf/client.ks").toURI().toString());
connectionFactory.setKeyStorePassword("password");
connectionFactory.setTrustStore(new File("../apache-activemq-5.13.0/conf/client.ts").toURI().toString());
connectionFactory.setTrustStorePassword("password");
try{
connection = connectionFactory.createConnection();
connection.start();
}catch(Exception e){
Log.addInLog(Log.ERR, "Couldn't get conenction to ActiveMQ " + e);
System.exit(1);
}
// Create the session
this.transactedSession = transactedSession;
session = connection.createSession(transactedSession, Session.AUTO_ACKNOWLEDGE);
destination = session.createQueue(queueName);