2012年9月3日星期一

WAMP环境配置https


cd /d D:\wamp\bin\apache\Apache2.2.11\bin
cp APACHE_CONF/openssl.cnf .
openssl
OpenSSL> req -new -x509 -days 999 -nodes -out apache.pem -keyout apache.pem -config openssl.cnf
Loading 'screen' into random state - done
Generating a 1024 bit RSA private key
....++++++
...++++++
writing new private key to 'apache.pem'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]:CN
State or Province Name (full name) [Some-State]:shanghai
Locality Name (eg, city) []:shanghai
Organization Name (eg, company) [Internet Widgits Pty Ltd]:op
Organizational Unit Name (eg, section) []:op
Common Name (eg, YOUR name) []:Shore
Email Address []:sh@g.com
在httpd.conf中添加两行:

LoadModule ssl_module modules/mod_ssl.so
Include conf/extra/httpd-ssl.conf
修改httpd-ssl.conf:

修改其中一行(路径相应改变):

SSLCertificateFile "D:/wamp/bin/apache/Apache2.2.11/bin/apache.pem"
重启Apache,OKAY!

httpswamp

没有评论:

发表评论

上海松善实业有限公司

    上海松善实业有限公司是一家集多品牌销售于一体的电线电缆骨干企业,公司成立于2016年。 公司拥有国内各大品牌:起帆、远东、上上、江南、胜华等。     主要产品有:高低压电力电缆、橡套电缆、控制电缆、架空绝缘电缆、塑胶电缆、电子计算机电缆、通讯电缆、...