aolserver中載入nsopenssl(轉)

post0發表於2007-08-10
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/,如需轉載,請註明出處,否則將追究法律責任。

相關文章