|
|
1.首先将2个证书文件(SSL.KEY和SSL.CRT)复制到服务器c:\ssl下。
2.在{apache server}/conf目录下,找到httpd.conf文件,打开该文件增加以下内容:
LoadModule ssl_module modules/mod_ssl.so
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
Listen 443
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl .crl
SSLPassPhraseDialog builtin
SSLSessionCacheTimeout 300
<VirtualHost _default_:443>
SSLEngine on
SSLCipherSuite
SSLCertificateFile "c:\ssl\server.crt"
SSLCertificateKeyFile "c:\ssl\server.key"
</VirtualHost>
3.重新启动Apache服务器,如果是LINUX环境,请输入:
apachectl stop
apachectl startssl
Apache服务器证书安装完毕。关于Apache其他SSL的设定,请参见:http://www.modssl.org/docs/2.8/ssl_reference.html
|
|
|
|