SSL CONFIGURATION FOR APACHE USING OPENSSL
1. Open command prompt (As Administrator)
and change directory to “C:\Apache24\bin”
2. Type openssl.exe and press enter.
Type
- genrsa -out Private.key 2048 -
Press Enter
4. Generate CSR
Step 1 Type the following command and press
enter
req -new -key private.key -out
Domain.csr -config C:\Apache24\conf\openssl.cnf
Step 2 Then specify Country Name , State or Province , Locality or City, Company ,
Organizational
Unit, Common Name (host+domain name).
Leave Challenge password and
optional company name empty by pressing Return key.
5. Once CSR file is generated,
proceed to enrolment from CA to get SSL certificate.
6.
Download SSL certificate and extract it's content into C:\Apache24\bin
folder.
7. Edit C:\Apache24\conf\httpd.conf in
Notepad and remove # preceding following lines:
·
LoadModule ssl_module modules/mod_ssl.so
·
LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
·
Include conf/extra/httpd-ssl.conf
8. Open up
c:\Apache24\conf\extra\httpd-ssl.conf in
Notepad to make changes.
STEP 1 Give file path for SSL
certificate (.crt file) provided by CA.
STEP 3 Give file path for
CA-bundle provided by CA in Certification Authority.
9. After doing all the steps restart
Apache service.
10. Open browser to check whether URL is
secured using HTTPS or not.