我开发了一个企业应用程序,它有一个用于发送邮件的独立模块。为此,我使用了 Java 消息传递服务 (JMS)。我已经将 ActiveMQ 用于消息代理服务。
如果有人能提及教程的 URL,其中包含为上述目的创建和配置 jssecacerts 文件的分步过程,请不胜感激。
服务器环境如下所示。
Java 版本:7 操作系统:CentOS 5.9 服务器应用服务器:JBoss 6 M2
您可以使用 keytool 实用程序
这里的例子:http: //docs.oracle.com/cd/E18930_01/html/821-2435/ablqz.html#ghlgv
最后,您会告诉您的应用程序使用证书,如下所示:
System.setProperty("javax.net.ssl.trustStore","<location of trustStore>");
System.setProperty("javax.net.ssl.trustStorePassword","<password>");
System.setProperty("javax.net.ssl.keyStore","<location of keyStore>");
System.setProperty("javax.net.ssl.keyStorePassword","<password>");