tomcat 配置ssl pfx为例

我的一个习惯要作一个事情总是先网上搜,以前做过的也第一时间搜一下,把之前遇到的问题重新搞一遍,不会把这些经历用博客的形式记一下,真是浪费时间。

浪费一大堆时间和报一堆错误后总算意识到要写博客了。直接写配置。

<Connector port="443" protocol="org.apache.coyote.http11.Http11Protocol" SSLEnabled="true"
               maxThreads="150" scheme="https" secure="true"
               clientAuth="false" sslProtocol="TLS" keystoreType="PKCS12" useBodyEncodingForURI="true"
			   keystoreFile="D:/bsorder_cert/xxxxx.cn.pfx"  
        		keystorePass="xxxxxx"/>

修改2处即可 

 keystoreFile="D:/bsorder_cert/xxxxx.cn.pfx"  
 keystorePass="xxxxxx"

猜你喜欢

转载自blog.csdn.net/xiehuanqing00/article/details/89358391