Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security, Veeam & DevOps

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form

How to configure SSL for WAMP server

Posted on 27/11/202424/06/2026 Christian By Christian No Comments on How to configure SSL for WAMP server
  1. Home
  2. Windows Server
  3. 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 contact@techdirectarchive.com
<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.

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

  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Bluesky (Opens in new window) Bluesky
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

  • QueryBitLocker1
    Query Windows BitLocker status remotely Windows
  • 33
    The wim file needs to be remounted: Fix error 0xc1510114 Windows Server
  • Implement Split Brain DNS Policies in Active Directory
    Implement Split-Brain DNS Policies in Active Directory Windows Server
  • Keep personal files and apps
    Fix Keep personal files and apps option greyed out during Upgrade Windows Server
  • Remote desktop connection over udp and tcp
    Remote Desktop Connection behavior over UDP and TCP Windows Server
  • kerberosdelegation
    Kerberos Delegation: A Comprehensive Guide Web Server

More Related Articles

Harica cert request and CSR Generate CSR and Request a Certificate from Herica CA Windows
WSUS Post deployment Configuration Failed The schema version of the database is from a newer version of wsus Windows Server
v13 harding Veeam Hardening Your Infrastructure: A Guide to VMware VBS and MS GPO Credential Guard in VBR v13 Backup
hero activedirectory 1 Active Directory Contact and a User Account Object Differences Security | Vulnerability Scans and Assessment
Task Scheduler Error 0x2 1 How to fix Windows Task Scheduler 0x2 Error Windows
article 1280x720.aa742702 How to create a custom view in Windows Event Viewer Windows Server

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

vexpert-badge-stars-5

Virtual Background

VEEAMLEGEND

Categories

Top 30 Sysadmin blog

veeaam100

Veeam Vanguard

  • cb5e9fcbe91618c68c5236d801eb6721
    Real-Time Monitoring: How to setup VeeamONE Network | Monitoring
  • Banner
    Enabling and Configuring WinRM via GPO Windows
  • Screenshot 2022 04 02 at 22.17.10
    How to Install Kubectl on Windows 11 Windows
  • intro to azure cloud shell
    The Overview of Azure Cloud Shell AWS/Azure/OpenShift
  • screenshot 2020 03 13 at 20.24.17
    How to view installed packages in Cygwin on Windows Windows
  • Bitllockerextdrives
    Manage TPM Protector: How to encrypt additional drives on an MBAM-protected device Windows
  • Featured image Microsoft Outlook
    How to Recall an Email in Microsoft Outlook Network | Monitoring
  • FEAUREanydesk
    How to install AnyDesk on a Linux Machine Linux

Subscribe to Blog via Email

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

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

Tags

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

Copyright © 2026 TechDirectArchive

Loading Comments...

You must be logged in to post a comment.