• 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 597 Times!

Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, 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

Get new posts by email:

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 (24.3K Followers)
  • Twitter (5.8k 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

  • Is it Good to Run Apache Web server and MySQL Database on Separate Cloud Servers? March 27, 2023
  • Advantages of Cloud Server Over Dedicated Server for Hosting WordPress March 26, 2023
  • Get Audiophile-Grade Music on Your Smartphone March 25, 2023
  • Simple Windows Security and Privacy Checklist for 2023 March 24, 2023
  • 7 Best Artificial Intelligence (AI) Software March 24, 2023

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, March 28, 2023, https://thecustomizewindows.com/2012/10/https-in-wamp-server-on-windows-pc-localhost-with-openssl/.

Source:The Customize Windows, JiMA.in

PC users can consult Corrine Chorney for Security.

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

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

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

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT