Https

方法一


server.xml

------------------
protocol="org.apache.coyote.http11.Http11AprProtocol"
SSLCertificateChainFile="conf/sca.server1.crt"
SSLCertificateFile="conf/ssl.crt"

SSLCertificateKeyFile="conf/cert.key"


方法二

protocol="org.apache.coyote.http11.Http11Protocol"
keystoreFile="ssl.p12"

keystorePass="xxxxxxxxx"
keystoreType="PKCS12"

在Firefox下有问题


方法三

keytool -importkeystore -srckeystore ssl.p12 -srcstoretype PKCS12 -srcstorepass xxxxxxxxx -destkeystore tomcat.jks -deststorepass xxxxxxxxx


protocol="org.apache.coyote.http11.Http11Protocol"
keystoreFile="tomcat.jks"
keystorePass="xxxxxxxxx"

在Firefox下有问题


方法四、(3个月有效期)

https://www.sslforfree.com/

SSLCertificateChainFile="conf/ca_bundle.crt"
SSLCertificateFile="conf/certificate.crt"
SSLCertificateKeyFile="conf/private.key"


nginx.conf
------------------
ssl_certificate      cert.pem;
ssl_certificate_key  cert.key;


cert.pem: SSLCertificateFile + SSLCertificateChainFile

cert.key:   SSLCertificateKeyFile                          https://startssl.com/ToolBox/DecryptPrivateKey


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值