本站首页    管理页面    写新日志    退出


«December 2025»
123456
78910111213
14151617181920
21222324252627
28293031


公告

戒除浮躁,读好书,交益友


我的分类(专题)

日志更新

最新评论

留言板

链接

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


阅读全文(7468) | 回复(0) | 编辑 | 精华
 



发表评论:
昵称:
密码:
主页:
标题:
验证码:  (不区分大小写,请仔细填写,输错需重写评论内容!)



站点首页 | 联系我们 | 博客注册 | 博客登陆

Sponsored By W3CHINA
W3CHINA Blog 0.8 Processed in 1.852 second(s), page refreshed 144809419 times.
《全国人大常委会关于维护互联网安全的决定》  《计算机信息网络国际联网安全保护管理办法》
苏ICP备05006046号