Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Contact
  • Reviews
  • Toggle search form
Home » Windows Server » How to configure SSL for WAMP server
  • shrink and create partition
    How to shrink and create new partition on Windows Server Windows Server
  • powershell commands lede 1024x276 1
    PowerShell Remoting: Guide to Windows Management Instrumentation Scripts
  • Uninstall MicrosoftDefenderUpdate
    What you need to know about Microsoft Defender Antivirus Security | Vulnerability Scans and Assessment
  • Feature image msert tool
    How to remove malware using Microsoft Safety Scanner on Windows 10 and 11 Security | Vulnerability Scans and Assessment
  • Leave Slack
    How to remove a user from a Slack Channel JIRA|Confluence|Apps
  • Featured image Desktop Stickers
    How to create Desktop Stickers in Windows 11 Windows
  • office365family
    How to Cancel Office 365 Family Subscription JIRA|Confluence|Apps
  • Convert MP4 to MP3
    2 Free Ways to Convert MP4 to MP3 Reviews

How to configure SSL for WAMP server

Posted on 27/11/202422/02/2025 Christian By Christian No Comments on How to configure SSL for WAMP server
SSL for Localhost on WAMP

The WAMP server (Windows, Apache, MySQL, PHP/Python/Perl) is a software stack designed to create a local development environment on Windows. It bundles “Apache”, a web server to host websites and applications, “MySQL”: A”, a relational database management system for managing data, and “PHP/Python/Perl”, a programming languages for server-side scripting. In this short article, we shall discuss how to configure SSL for WAMP server. Please see how to Install and Configure WordPress on Your Windows Computer Using WAMP SERVER, and how to Generate self-signed certificate and export in PFX format via PowerShell [Part 2].

Please see Install Let’s Encrypt Wildcard SSL Certificate in cPanel using Certify The Web, and How to import SSL Certificate to Windows Server using DigiCert Utility. Also, see How to generate your trial SSL Certificate using DigiCert PKI platform.

What Certificate Format?

A WAMP server certificate can be in either PEM or PKCS12 format. PEM (Privacy Enhanced Mail) format is a base64 encoded ASCII format for certificates. PKCS12 (Public Key Cryptography Standard 12) format is a binary format that can contain both the certificate and its private key, protected by a password.

Note: Windows servers use .pfx files that contain the public key file (SSL certificate file) and the associated private key file. So, if transferring your SSL certificates from a Windows server to Apache, you need to export the certificate in an Apache-compatible format, which splits the public (.crt) and private (.key) files.

Apache servers split the SSL certificate parts into two separate files: .crt and .key files. The .crt file contains the public key file (SSL certificate file), and the .key file contains the associated private key.

Some SSL authorities (CAs) provides you with an SSL certificate (public key file). You must use your server to generate the associated private key file as part of the CSR. You need both the public and private keys for an SSL certificate to function. These certificate authorities issue SSL/TLS certificates that enable secure communication and help establish trust for websites.

Please see How to Disable TLS 1.0, TLS 1.1 and TLS 1.2 in Windows Using GPO, how to Install Lets Encrypt Certificate on Windows with Certbot, and how to Generate a self-signed SSL certificate: Enable LDAP over SSL.

Configure SSL for WAMP

You can configure SSL (Secure Sockets Layer) for a WAMP server by creating a self-signed SSL certificate or using a third-party certificate. To enable HTTPS, set up the SSL certificate and configure Apache accordingly.

Please see how to fix Apache errors associated with WAMP installation for TeamPass, Setup VirtualHost with SSL on WAMP Server, and How to create Virtual Hosts in a WAMPserver.

Enable SSL Module in Apache

Launch the WAMP server menu by clicking on the WAMP icon in the system tray. Navigate to Apache> Apache Modules and make sure that ssl_module is checked. If it’s not checked, click on it to enable.

Also, do not forget to enable the rewrite_module.

Create a Self-Signed SSL Certificate

Since this is for testing purpose, launch the Command Prompt with administrator privileges. Navigate to the Apache bin directory in your WAMP installation as shown below.

cd C:\wamp\bin\apache\apache2.4.41\bin

Next, generate a private key and a self-signed certificate. Please see How to Install OpenSSL on Windows Computers

openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout private.key -out certificate.crt

Follow the prompts to enter the required information. Please see “MBAM extended support ends April 2026: Find alternative solution, and how to fix “You are currently signed in as: Use a different account-this account is managed by your organisation”.

Configure Apache to Use SSL

Open the Apache configuration file httpd.conf in a text editor. You can find it in the Apache conf directory as shown below and uncomment “include conf/extra/https-ssl.conf and save. This enables Apache to load the SSL-specific configuration from the httpd-ssl.conf file, which contains the directives required to handle HTTPS connections. Without this, the server won’t recognize or respond to HTTPS requests.

C:\wamp\bin\apache\apache2.4.41\conf\httpd.conf
Uncomment-and-save-your-work-Apache-Configiration-File

Configure Apache for SSL

Open the httpd-ssl.conf file in a text editor as shown below.

configure httpd-ssl.conf

Modify or ensure the following configurations are available. To do this, please update the SSLCertificateFile and SSLCertificateKeyFile directives to point to your generated certificate and key:

SSLCertificateFile "${SRVROOT}/conf/ssl/server.crt"
SSLCertificateKeyFile "${SRVROOT}/conf/ssl/server.key"

I prefer to have it set this way below due to several errors I encountered.

SSLCertificateFile "C:/wamp/bin/apache/apache2.4.41/conf/ssl/techda.crt"
SSLCertificateKeyFile "C:/wamp/bin/apache/apache2.4.41/conf/ssl/techda.key"

Set the virtual host details for your domain

Also, do not forget to set the virtual host details for your local domain. This article is similar to the topic Configure a virtual host for SSL on WAMP Server, other than it was not specifically for accessing localhost securely.

Define a new virtual host for your SSL-enabled website with the following parameters as shown below.

DocumentRoot "${SRVROOT}/www/htdocs"
ServerName techapp.com:443
ServerAdmin [email protected]

<Please uncomment and specify the following certificate path into the "SSLCertificateKeyFile", and the "SSLCertificateFile">
SSLEngine on
SSLCertificateKeyFile "C:/wamp64/bin/apache/apache2.4.54.2/conf/key/techda.crt"
SSLCertificateFile "C:/wamp64/bin/apache/apache2.4.54.2/conf/key/techda.key"

Restart Server and Test SSL Certificate

Next, restart the Apache server through the WAMP server menu and test your SSL configuration. Afterwards, open your web browser and access your local server using localhost.

You might get a warning about the SSL certificate not being trusted since it’s self-signed. Proceed to the site (this varies depending on the browser).

Since (if) you are using a self-signed certificate. Your browser may display a warning. You can bypass it by marking the certificate as trusted for local use.

Now, your WAMP server should be accessible over HTTPS. Remember, while self-signed certificates are useful for development and testing, they are not suitable for production. In a production environment, obtain a certificate from a trusted Certificate Authority

I hope you found this article very useful on How to configure SSL for WAMP server. Please feel free to leave a comment below.

5/5 - (1 vote)

Thank you for reading this post. Kindly share it with others.

  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Telegram (Opens in new window) Telegram
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Mastodon (Opens in new window) Mastodon
  • Click to share on Bluesky (Opens in new window) Bluesky
  • Click to share on Threads (Opens in new window) Threads
  • Click to share on Nextdoor (Opens in new window) Nextdoor
Windows Server Tags:Microsoft Windows, SSL, ssl certificate, Windows 10, Windows 11, Windows Server 2016

Post navigation

Previous Post: MBAM extended support ends April 2026: Find alternative solution
Next Post: How to uninstall Hyper-V on a Windows PC

Related Posts

  • Extend C drive with additional Software
    Fix unable to Extend Volume on Windows protected by BitLocker Windows
  • How to Manage Azure Virtual Machines with Windows Admin Center and Serial Console​
    Manage Azure Virtual Machine with Windows Admin Center and Serial Console AWS/Azure/OpenShift
  • active directory faq 2016 1
    How to detect who disabled a user in Active Directory Windows Server
  • Grant Non Domain Admin Privileges to Manage Workstation
    Grant Non-Domain Admin Privileges to Manage Workstation Windows
  • ETWindows
    An Overview of Event Tracing for Windows Windows
  • windows 10 spying 1200x687 1
    Error 183: Specified image is being serviced by another DISM operation Windows Server

More Related Articles

Extend C drive with additional Software Fix unable to Extend Volume on Windows protected by BitLocker Windows
How to Manage Azure Virtual Machines with Windows Admin Center and Serial Console​ Manage Azure Virtual Machine with Windows Admin Center and Serial Console AWS/Azure/OpenShift
active directory faq 2016 1 How to detect who disabled a user in Active Directory Windows Server
Grant Non Domain Admin Privileges to Manage Workstation Grant Non-Domain Admin Privileges to Manage Workstation Windows
ETWindows An Overview of Event Tracing for Windows Windows
windows 10 spying 1200x687 1 Error 183: Specified image is being serviced by another DISM operation Windows Server

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a

  • shrink and create partition
    How to shrink and create new partition on Windows Server Windows Server
  • powershell commands lede 1024x276 1
    PowerShell Remoting: Guide to Windows Management Instrumentation Scripts
  • Uninstall MicrosoftDefenderUpdate
    What you need to know about Microsoft Defender Antivirus Security | Vulnerability Scans and Assessment
  • Feature image msert tool
    How to remove malware using Microsoft Safety Scanner on Windows 10 and 11 Security | Vulnerability Scans and Assessment
  • Leave Slack
    How to remove a user from a Slack Channel JIRA|Confluence|Apps
  • Featured image Desktop Stickers
    How to create Desktop Stickers in Windows 11 Windows
  • office365family
    How to Cancel Office 365 Family Subscription JIRA|Confluence|Apps
  • Convert MP4 to MP3
    2 Free Ways to Convert MP4 to MP3 Reviews

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,836 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

Active Directory AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.