前提: 有密钥文件和证书文件 web.crt web.key
resin3的配置(resin.conf)
<http address="*" port="443">
<openssl>
<certificate-file>keys/web.crt</certificate-file>
<certificate-key-file>keys/web.key</certificate-key-file>
<password>hermes</password>
</openssl>
</http>
resin2的配置
先用Java KEYTOOL 在线生成合成 JKS 文件(https://www.myssl.cn/openssl/CreateJKS.asp)
配置resin.conf如下
<http port=8443>
<ssl>true</ssl>
<key-store-type>jks</key-store-type>
<key-store-file>keys/web.jks</key-store-file>
<key-store-password>123456</key-store-password>
</http>
key-store-password是在线合成时设置的密码。