• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here: Home » HTTPS in WAMP Server on Windows PC localhost with OpenSSL

By Abhishek Ghosh October 26, 2012 7:13 am Updated on October 26, 2012

HTTPS in WAMP Server on Windows PC localhost with OpenSSL

Advertisement

HTTPS in WAMP Server on Windows PC localhost with OpenSSL is quite easy to setup if you follow our step by step guide. You will get self signed certificate. Before setting up HTTPS in WAMP Server, if you have doubt or questions about HTTPS or SSL or OpenSSL, please do a search on the search box in the top of this webpage.

 

HTTPS in WAMP Server on Windows PC localhost : Needed Setup

 

For this guide to setup HTTPS in WAMP Server on Windows PC localhost with OpenSSL, you essentially need to follow the setup like us as we described in :

 

Installing WordPress on Windows PC using WAMP 

Advertisement

---

Optionally, you can use a better looking console with Syntax Highlighting

 

Additionally, download and install Win32 OpenSSL Installer :

 

Vim
1
http://slproweb.com/products/Win32OpenSSL.html

 

HTTPS in WAMP Server on Windows PC localhost with OpenSSL

 

Basically we need to activate mod_ssl module of Apache. With WAMP, you can simply click on Windows Taskbar arrow menu and LEFT click to invoke the menu in this way :

 

HTTPS in WAMP Server on Windows PC localhost with OpenSSL

 

When you will hover over Apache modules, you will get ssl module option in a long list. Click to tick mark it. You need to go to Apache2’s bin folder, which normally should be in :

 

Vim
1
C:wampbinapacheapache2.2.22bin

 

So, open console2 or crap looking Command Prompt and change directory (cd) :

 

Vim
1
cd C:wampbinapacheapache2.2.22bin

 

This is where we are :

 

HTTPS in WAMP Server on Windows PC

 

Run this command :

 

Vim
1
openssl req -new > webserver.csr

 

You have to give some data :

 

HTTPS in WAMP Server on localhost

Generate key by running this command :

 

Vim
1
openssl rsa -in privkey.pem -out webserver.key

 

In Ubuntu there is some output, in Windows there is only one sentence as output. Probably due to simulated environment. Next one is a big command :

 

Vim
1
openssl x509 -in webserver.csr -out webserver.cert -req -signkey webserver.key -days 365

 

Restart all services of WAMP. Your Apache httpd configuration file (httpd.conf)  should be in, it will be invisible but other files will show :

 

Vim
1
C:wampbinapacheapache2.2.22

 

You can open the httpd.conf file from WAMP menu, look at the first screen shot, there is an option named httpd.conf , clicking it will open as text file. There will be a line :

 

Vim
1
Include conf/extra/httpd-ssl.conf

 

remove the # in front and save it. It was inactive. So from this file we got an important path :

 

Vim
1
C:wampbinapacheapache2.2.22confextra

 

There will be – httpd-ssl.conf

The easy way to edit it in Windows is, using Gedit text editor for Windows.  Just open Gedit and drag and drop this file. Your first work is to edit the VirtualHost to real values, like :

 

Vim
1
2
3
4
5
6
<VirtualHost _default_:443>
DocumentRoot "c:/wamp/www"
ServerName localhost:443
ServerAdmin admin@thecustomizewindows.com
ErrorLog "c:/wamp/logs/error.log"
TransferLog "c:/wamp/logs/access.log"

 

Edit three lines more :

 

Vim
1
2
3
SSLCertificateFile "C:/wamp/OpenSSL/certs/webserver.cert"
SSLCertificateKeyFile "C:/wamp/OpenSSL/certs/webserver.key"
SSLCARevocationPath "C:/wamp/OpenSSL/crl"

 

These are not located in this way, they are several lines apart. There is no folder named OpenSSL under wamp folder. Still. Still because we will create it.

There is another file named openssl.cnf in :

 

Vim
1
C:wampbinapacheapache2.2.22conf

 

Open that in Gedit in the same way. These will not open in Windows normally. In this file there will be a line saying the default location of “dir = ” change it to :

 

Vim
1
dir = c:/wamp/OpenSSL

 

Now cd to C:wamp in your Console2 by :

 

Vim
1
cd   C:wamp

 

Create OpenSSL folder :

Vim
1
mkdir OpenSSL

 

Go to OpenSSL folder :

 

Vim
1
cd OpenSSL

 

Run one by one :

 

Vim
1
2
3
4
mkdir certs
mkdir crl
mkdir newcerts
mkdir private

 

Like this :

 

HTTPS in WAMP Server on Windows

Our Keys are on :

 

Vim
1
C:wampbinapacheapache2.2.22bin

 

These will copied :

 

Vim
1
2
3
webserver.cert
webserver.csr
webserver.key

 

to :

 

Vim
1
C:wampOpenSSLcerts

 

And these :

 

.rnd
privkey.pem

 

OpenSSL

 

php.ini is usually rightly configured. There is no need check it unless there is error. Open https url of your localhost. You might need to restart wamp, restart Windows to make it working.

 

Abhishek-Ghosh Tagged With OPENSSL TOOLKIT windows wamp , configure open ssl on wamp window 10 , wampserver openssl , openssh wamp , setting up ssl on wamp server on windows , install digicert ssl wamp 3 server , https://yandex ru/clck/jsredir?from=yandex ru;search;web;;&text=&etext=1833 _njOhZn7V-_1TCrqNlHaBOh5M4HWI1G_uXv4MEVw9I3Ty7aZ20WdxftSWShVNjPC 2071bee8f1293b9647d530c8f3cff3ad86e7b631&uuid=&state=_BLhILn4SxNIvvL0W45KSic66uCIg23qh8iRG98qeIXme , https://thecustomizewindows com/2012/10/https-in-wamp-server-on-windows-pc-localhost-with-openssl/ , wampserver ssl setup , how to configration ssl certecgiet wamp server step by step

This Article Has Been Shared 756 Times!

Facebook Twitter Pinterest
Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Orthopaedic Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to HTTPS in WAMP Server on Windows PC localhost with OpenSSL

  • Syntax Highlighting : All About the Colorful Snippets

    Syntax Highlighting is a method for coloring certain words and characters in a text depending on their importance in in an piece of code or snippet.

  • WordPress Compatibility Checking Script for Your Web Server

    WordPress Compatibility Checking Script for Your Web Server is a simple yet powerful script to test whether your web host to run WordPress smoothly.

  • Cloud Computing : Your Concerns and Thoughts of Richard Stallman

    Cloud Computing as terminology raises the eyebrows of some users who are associated with academics and computing for many years. Let us discuss on the topic.

  • API Basics in Plain English

    API Basics explains what we do with this API and why and how really you can use your own API. It is really not that difficult than it sounds to be.

  • Outgoing Link Tracking with Google Analytics

    Outgoing Link Tracking with Google Analytics is quite easy to setup both with the traditional or the asynchronous code. You can track outgoing certain link.

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

You can subscribe to our Free Once a Day, Regular Newsletter by clicking the subscribe button below.

Click To Subscribe

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (21K Followers)
  • Twitter (5.3k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Best Powerpoint Templates for Communicating IoT Concepts April 17, 2021
  • How to Build a DIY Water Level Indicator? April 16, 2021
  • How Startups Can Convince the Investors April 14, 2021
  • What to Know About the Cloud Storage Services for Smartphones April 13, 2021
  • WonderFox HD Video Converter Factory Pro Review April 10, 2021

 

About This Article

Cite this article as: Abhishek Ghosh, "HTTPS in WAMP Server on Windows PC localhost with OpenSSL," in The Customize Windows, October 26, 2012, April 20, 2021, https://thecustomizewindows.com/2012/10/https-in-wamp-server-on-windows-pc-localhost-with-openssl/.

Source:The Customize Windows, JiMA.in

 

This website uses cookies. If you do not want to allow us to use cookies and/or non-personalized Ads, kindly clear browser cookies after closing this webpage.

Read Cookie Policy.

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

Copyright © 2021 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy