aolserver中加载nsopenssl(转)[@more@]
1. 下载nsopenssl,编译生成nsopenssl.so,放在目录/usr/local/aolserver/bin下面
2. 生成公钥和私钥:
openssl req -new -keyout new.key.pem > new.cert.csr
openssl rsa -in new.key.pem -out new.key
openssl x509 -in new.cert.csr -out new.cert -req -signkey new.key -days 365
3. mv new.cert certificate.pem;mv new.key key.pem
4. mkdir /usr/local/aol/servers/server1/modules/nsopenssl;cp certificate.pem key.pem /usr/local/aol/servers/server1/modules/nsopenssl;
5. 修改tcl配置文件,加载nsopenssl.so:
将set httpsport 8443改为set httpsport 443
在Socket driver module (HTTPS) -- nsssl之下增加如下几行:
ns_section "ns/server/${servername}/module/nsopenssl"
ns_param ServerPort $httpsport
ns_param ServerHostname $hostname
ns_param ServerAddress $address
在ns_param xmweb ${bindir}/xmweb${ext}下增加一行
ns_param nsopenssl ${bindir}/nsopenssl${ext}
6. 重新启动aolserver,就可以https访问其页面
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/8225414/viewspace-942855/,如需转载,请注明出处,否则将追究法律责任。