| « | December 2025 | » | | 日 | 一 | 二 | 三 | 四 | 五 | 六 | | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | | | | |
| 公告 |
戒除浮躁,读好书,交益友 |
| Blog信息 |
|
blog名称:邢红瑞的blog 日志总数:523 评论数量:1142 留言数量:0 访问次数:9756017 建立时间:2004年12月20日 |

| |
|
[j2ee]resin配置https 原创空间, 软件技术, 电脑与网络
邢红瑞 发表于 2006/4/20 18:34:45 |
| resin配置https由于resin有较好的抗负载能力,所以大型网站一般用resin,sina,sohu,163,263等等。由于jsse在ssl握手的时候速度较慢,大型网站一般使用openssl。下面给出配置的步骤:1。得到openssl,由于openssl0。9。7的漏洞较多,resin 3.0.21后开始使用openssl 0.9.8,安装或编译openssl,把ssleay32.dll libeay32.dll libssl32.dll copy到resinhome中.2. 创建证书,使用openssl,就不多说了.在证书的目录中我这里是resinhome下keys目录建立一个openssl.cnf [ req ] default_bits = 1024 distinguished_name = req_distinguished_name
[ req_distinguished_name ] C = 2 letter Country Code, for example US C_default = ST = State or Province ST_default = L = City L_default = O = Organization Name O_default = OU = Organizational Unit Name, for example 'Marketing' OU_default = CN = your domain name, for example www.hogwarts.com CN_default = emailAddress = an email address emailAddress_default =3.打开resinhome目录下conf目录下resin.conf<http server-id="" host="*" port="8080"/>后面加入 <http port="443"> <openssl> <certificate-file>keys/gryffindor.crt</certificate-file> <certificate-key-file>keys/gryffindor.key</certificate-key-file> <password>certificate</password> </openssl> </http>4.root目录下面新建一个a.jsp文件内容为Secure? <%= request.isSecure() %>输入https://localhost/a.jsp出现Secure? true 要求 resin必须为企业版,而且有license.一切ok |
|
|