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
  • runlevels
    How to check your current Runlevel in Linux Linux
  • jmeterimage
    Apache JMeter Load Testing: Test Mobile Apps on Windows Configuration Management Tool
  • BitLocker
    Unable to find my BitLocker Recovery Key in AD Windows
  • PA File
    File Audit and Monitoring: PA File Sight Ultra review and product details Reviews
  • WAMP errors
    Apache errors associated with WAMP installation for TeamPass Web Server
  • Norton 360 Error
    Norton Autofix identified an issue: Fix Norton 360 Installation has encountered an error 8404 on Windows Anti-Virus Solution
  • switchlinuxusers
    How to Switch between Users in Linux Linux
  • remote desktop connection 5 1280x720 1
    How to view and remove Remote Desktop connection history Windows

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 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.

5/5 - (1 vote)

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
  • Share on Threads (Opens in new window) Threads
  • 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

  • fdsdsd
    Configuring DHCP Scope: Post-deployment of Dynamic Host Configuration Protocol Windows Server
  • 1 kajkbmlyehn0inifwrh 8w
    How to install Kerberos packages via Cygwin in Windows Windows Server
  • Internet Explorer
    How to uninstall Internet Explorer from your Windows Device Windows
  • Screenshot 2021 03 16 at 21.14.05
    Unable to locate the account: Fix call to DsGetDcNameWithAccount failed with return value 0x0000054B Windows Server
  • Remote Desktop 2 1
    How to install RDS via Quick Start Deployment: Install, Publish, Update, and Uninstall Remote Desktop Web Client Web Server
  • WebLaps
    Configure WebLAPS to manage Microsoft LAPS Windows

More Related Articles

fdsdsd Configuring DHCP Scope: Post-deployment of Dynamic Host Configuration Protocol Windows Server
1 kajkbmlyehn0inifwrh 8w How to install Kerberos packages via Cygwin in Windows Windows Server
Internet Explorer How to uninstall Internet Explorer from your Windows Device Windows
Screenshot 2021 03 16 at 21.14.05 Unable to locate the account: Fix call to DsGetDcNameWithAccount failed with return value 0x0000054B Windows Server
Remote Desktop 2 1 How to install RDS via Quick Start Deployment: Install, Publish, Update, and Uninstall Remote Desktop Web Client Web Server
WebLaps Configure WebLAPS to manage Microsoft LAPS Windows

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

  • runlevels
    How to check your current Runlevel in Linux Linux
  • jmeterimage
    Apache JMeter Load Testing: Test Mobile Apps on Windows Configuration Management Tool
  • BitLocker
    Unable to find my BitLocker Recovery Key in AD Windows
  • PA File
    File Audit and Monitoring: PA File Sight Ultra review and product details Reviews
  • WAMP errors
    Apache errors associated with WAMP installation for TeamPass Web Server
  • Norton 360 Error
    Norton Autofix identified an issue: Fix Norton 360 Installation has encountered an error 8404 on Windows Anti-Virus Solution
  • switchlinuxusers
    How to Switch between Users in Linux Linux
  • remote desktop connection 5 1280x720 1
    How to view and remove Remote Desktop connection history Windows

Subscribe to Blog via Email

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

Join 1,825 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

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

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.