1.mkdir ssl.key
2.cd ssl.key
3.openssl genrsa -out server.key 1024
4.mkdir ssl.crt
5.cd ssl.crt
6.openssl req -new -x509 -key ../ssl.key/server.key -out server.crt
7.编辑apache/conf/ssl.conf,大致内容如下:
Listen 443
ServerName xxx.xxx.com
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile /usr/local/apache/conf/ssl.crt/server.crt
SSLCertificateKeyFile /usr/local/apache/conf/ssl.key/server.key
阅读(946) | 评论(0) | 转发(0) |