-
Notifications
You must be signed in to change notification settings - Fork 0
/
steps_to_run.txt
98 lines (55 loc) · 1.68 KB
/
steps_to_run.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
- Download http://pear.php.net/go-pear.phar
- Run php go-pear.phar
- pear install mail
- pear install mail_mime
- pear install Net_SMTP
- Add pear to PATH
- Uncomment in 'extension=php_openssl.dll' in php.ini
cd C:\OPENSSL-win32
mkdir certs
mkdir crl
mkdir newcerts
mkdir private
set OPENSSL_CONF=c:\openssl-win32\bin\openssl.cfg
cd C:\wamp\Apache2\bin
openssl req -new > webserver.csr
Passphase: Senior1234
Challenge Password: hahacatchmeifyoucan
# Remove passphase
openssl rsa -in privkey.pem -out webserver.key
# Convert into signed certificate
openssl x509 -in webserver.csr -out webserver.cert -req -signkey webserver.key -days 365
STORE CERTIFICATE FILES
Create a folder c:\wamp\OpenSSL with the following subfolders:
/certs
/crl
/newcerts
/private
Copy the following files to /certs/:
webserver.cert
webserver.csr
webserver.key
Copy the following files to /private/:
.rnd
privkey.pem
MODIFY HTTPD-SSL.CONF
SSLSessionCache "shmcb:c:/wamp/bin/apache/Apache2.4.4/logs/ssl_scache(512000)"
DocumentRoot "c:/wamp/www"
ServerName www.example.com:443
ServerAdmin [email protected]
ErrorLog "c:/wamp/logs/error_ssl.log"
TransferLog "c:/wamp/logs/access_ssl.log"
SSLCertificateFile "c:/OpenSSL-Win32/certs/webserver.cert"
SSLCertificateKeyFile "c:/OpenSSL-Win32/certs/webserver.key"
SSLCARevocationPath "C:/wamp/OpenSSL/crl"
In C:\wamp\bin\apache\Apache2.2.4\conf\openssl.cnf
dir = C:/OpenSSL-Win32 # Where everything is kept
In C:\wamp\bin\apache\Apache2.4.4\conf\httpd.conf
Uncomment:
Include conf/extra/httpd-ssl.conf
-> in httpd.conf
>> Add
Listen 443
- Configure Apache for :443 to point to /web
- Configure Apache for :80 to point to /web/http
- Restart Apache