-
Notifications
You must be signed in to change notification settings - Fork 0
/
wamp_ssl_cert.txt
25 lines (21 loc) · 2.1 KB
/
wamp_ssl_cert.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
openssl genrsa -aes256 -out private.key 2048
openssl rsa -in private.key -out private.key
openssl req -new -x509 -nodes -sha1 -key private.key -out certificate.crt -days 36500 -config c:\wamp64\bin\apache\apache2.4.27\conf\openssl.cnf
Когда запросит FQDN, указать localhost
Файлы crt и key переместить из c:\wamp64\bin\apache\apache2.4.27\bin
в
c:\wamp64\bin\apache\apache2.4.27\conf\key\
в httpd.conf раскомментировать
LoadModule ssl_module modules/mod_ssl.so
Include conf/extra/httpd-ssl.conf
LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
В conf\extra\httpd-ssl.conf
параметры
DocumentRoot "c:/wamp64/www"
ServerName localhost:443
ServerAdmin admin@example.com
SSLSessionCache "shmcb:c:/wamp64/bin/apache/apache2.4.27/logs/ssl_scache(512000)"
ErrorLog "c:/wamp64/bin/apache/apache2.4.27/logs/error.log"
TransferLog "c:/wamp64/bin/apache/apache2.4.27/logs/access.log"
SSLCertificateFile "c:/wamp64/bin/apache/apache2.4.27/conf/key/certificate.crt"
SSLCertificateKeyFile "c:/wamp64/bin/apache/apache2.4.27/conf/key/private.key"