简体   繁体   English

如果服务器和客户端处于活动状态,如何获取证书详细信息在服务器和客户端之间交换

[英]How to get the certificate details exchanged between server & client if it's activemq

像在套接字中一样,我们有一个方法addHandshakeCompletedListener(),一旦两方之间的握手成功,我们将允许我们生成特定的详细信息,如果通信是activemq,并且它启用了SSL,则如何在握手完成时检索证书详细信息,如expriy详细信息

From the documentations (haven't tried it myself): 从文档中(我自己没有尝试过):

From your activemq connection object: http://activemq.apache.org/maven/apidocs/org/apache/activemq/ActiveMQConnection.html 从您的activemq连接对象中: http : //activemq.apache.org/maven/apidocs/org/apache/activemq/ActiveMQConnection.html

  • Call .getTransport(); 调用.getTransport();

With the transport Object returned: http://activemq.apache.org/maven/apidocs/org/apache/activemq/transport/Transport.html 返回传输对象后: http : //activemq.apache.org/maven/apidocs/org/apache/activemq/transport/Transport.html

  • Call .getPeerCertificates() 呼叫.getPeerCertificates()

This should return the list of peer certificates. 这应该返回对等证书列表。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 客户端和服务器套接字之间交换的“消息”的结尾 - Ending of “messages” exchanged between client and server sockets 使用Java-Metro,如何从服务器端获取ssl客户端证书详细信息? - using Java-Metro, from server side, how to get ssl client certificate details? 如何将位于NAT之后的ActiveMQ客户端连接到没有该服务器的服务器? - How to connect an ActiveMQ Client that's behind a NAT to a Server that isn't? 使用ActiveMQ在客户端和服务器之间进行图像传输 - Image transfer between client and server with ActiveMQ 在 Java 客户端中打开 SSLSocket 时,如何在运行时获取服务器证书? - How can I get hold of the server's certificate at run time when opening an SSLSocket in a Java client? java http客户端如何验证服务器的CA证书? - How does java http client validate Server's CA Certificate? 如何在Java / Android Studio中将服务器的证书添加到客户端 - How to add a server’s certificate to the client in Java / Android Studio 如何在自签名服务器和客户端证书上调用 https get 方法 - How to call the https get method on a self signed server and client certificate ActiveMq队列与服务器 - ActiveMq Queue's with server 如何获取服务器证书链然后验证它在 Java 中是否有效和可信 - How to get server certificate chain then verify it's valid and trusted in Java
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM