且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

将外部服务器的自签名证书添加到Tomcat的受信任证书

更新时间:2022-02-05 08:04:10

JBoss(基于Tomcat)可以使用以下cmd参数运行。 cacerts文件(或者您想要命名的)必须包含端点的cert。

JBoss (which is based on Tomcat) can be run with the following cmd arguments. The cacerts file (or however you would like to name it) must contain the cert of the endpoint.

-Djavax.net.ssl.trustStore = C:\Applications\jboss-as\server\default\conf\cacerts
-Djavax.net.ssl.trustStorePassword = changeit

-Djavax.net.ssl.trustStore=C:\Applications\jboss-as\server\default\conf\cacerts -Djavax.net.ssl.trustStorePassword=changeit

因此,这也应该适用于Tomcat。

Therefor this should also work for Tomcat.