Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Thread Contributor: TechnomanHTTP & SSL HTTPS Wamp

#1
Quote:Credit Goes to: Ankit Wasankar July 23, 2016

http://www.mytechblog.in/install-ssl-win...ssl-https/


Install SSL on windows localhost WAMP HTTP + SSL = HTTPS

Here we are going to see how to install SSL certificate in Windows localhost WAMP server.
Lot many times our production servers are installed with SSL certificates and our local development machines uses noramal http, and this makes our development system different from our production one. And as a developer we always like to have an exact environment like our production system. So here’s the guide how to install self created SSL certificate on your local WAMP installation and use Https communication with your local WAMP.


Here are the things we are going to do
  1. Download & install WAMP (Assuming that WAMP is installed in C: directory)

  2. Download & install OpenSSL

  3. Configure WAMP to use HTTP+SSL=HTTPS
Watch the video tutorial to know about the detailed step by step procedure.





Step 1:

Download & install WAMP (Assuming that WAMP is installed in C: directory)

Step 2:

Download & install OpenSSL

Step 3:

Configure WAMP to use HTTP+SSL=HTTPS




Code:
    Path to openssl.exe : C:\wamp\bin\apache\apache2.4.9\bin\openssl.exe
    Path to openssl.cnf : C:\wamp\bin\apache\apache2.4.9\conf\openssl.cnf




Step 5:

CMD in Path to openssl.exe :::




Code:
    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:\wamp\bin\apache\apache2.4.9\conf\openssl.cnf




Now copy the privateKey & certificate into folder



Step 6:

Open httpd.conf & uncomment following



Code:
LoadModule ssl_module modules/mod_ssl.so
Include conf/extra/httpd-ssl.conf
LoadModule socache_shmcb_module modules/mod_socache_shmcb.so


Open php.ini (wamp\bin\php\php5.5.12\php.ini)



Code:
extension=php_openssl.dll




Step 7:



    C:\wamp\bin\apache\apache x.x.x\conf\extra\httpd-ssl.conf
    <VirtualHost _default_:443> (Below this line check following parameters)
-------------------

Code:
    DocumentRoot "C:/wamp/www"
    ServerName localhost:443
    ServerAdmin [email protected]
    ErrorLog "C:/wamp/bin/apache/apache2.4.9/logs/ssl_error.log"
    TransferLog "C:/wamp/bin/apache/apache2.4.9/logs/ssl_access.log"

    SSLCertificateFile "C:/wamp/bin/apache/apache2.4.9/conf/key/certificate.crt"
    SSLCertificateKeyFile "C:/wamp/bin/apache/apache2.4.9/conf/key/private.key"

-------------------


Code:
    httpd -t (To check the validity of file)
Reply
Thanks given by: Mark , Desmond


#2
Wonderful!
Reply
Thanks given by:


#3
(03-31-2017 10:01 PM)Desmond Wrote: Wonderful!

You're welcome!
Reply
Thanks given by:


0 members viewed this thread in the last 365 days :


Possibly Related Threads...
Thread Author Replies Views Last Post
  Forbidden You don't have permission to access on this server wamp Admin 0 121 06-23-2018, 10:47 PM
Last Post: Admin
  WAMP is Running Very Slow Technoman 0 290 08-16-2017, 07:06 PM
Last Post: Technoman
  wamp server fast Technoman 0 196 08-16-2017, 07:04 PM
Last Post: Technoman

Forum Jump:


Users browsing this thread: 1 Guest(s)