A simple but powerful Windows Forms tool for developers to fully automate the tedious and error-prone process of setting up a trusted SSL/HTTPS environment on a local WAMP server.
This application handles everything from creating a local Certificate Authority to configuring Apache and the Windows hosts file, turning a multi-hour headache into a one-click process.
- One-Click Setup: Automates the entire SSL configuration process with a single button press.
- Local Root CA: Generates a local Root Certificate Authority (CA) and automatically installs it in the Windows Trust Store, eliminating browser security warnings.
- Domain Certificate Generation: Creates unique, trusted SSL certificates for each of your local development domains.
- Apache Auto-Configuration:
- Intelligently repairs common WAMP configuration issues (
httpd.conf,httpd-ssl.conf). - Ensures
Listen 443is active and disables conflicting default settings. - Generates a clean
httpd-vhosts.conffile from scratch.
- Intelligently repairs common WAMP configuration issues (
- Automatic HTTPS Redirects: Configures all port 80 virtual hosts to automatically redirect to their HTTPS equivalent.
- Hosts File Management: Automatically adds and cleans up entries in the Windows
hostsfile. - Real-time Logging: Provides a detailed log of all operations, making troubleshooting simple.
- Windows 10 or newer.
- WampServer installed.
- .NET Framework 4.7.2 or later.
- Download: Grab the latest
.exefrom the Releases page. - Run as Administrator: Right-click
WampSslAutomator.exeand select "Run as administrator". This is required to modify system files and the certificate store. - Configure Paths: Verify that the WAMP installation path and Apache version folder are correct.
- Add Domains: Use the "Add Domain" button to populate the grid with your local domain names and their full document root paths.
- Generate: Click the "Generate SSL Configuration" button.
- Restart WAMP: Once the tool reports success, start or restart your WAMP server services. Your local sites will now be running on HTTPS!
The tool follows a robust, multi-step process to ensure a working configuration:
- System Audit: It first reads the core Apache configuration files (
httpd.conf,httpd-ssl.conf) and automatically fixes common issues like missingIncludedirectives, duplicateListencommands, and conflicting default virtual hosts. - Cleanup: It cleans the Windows
hostsfile of any old entries and clears the Apachessldirectory. - Root CA Creation: It generates a new Root CA and uses C#'s
X509Storeclass to install it into the WindowsTrusted Root Certification Authoritiesstore. This is the key step to making all subsequent certificates trusted. - Certificate Generation: For each domain you've listed, it uses the
openssl.exethat comes with WAMP to generate a private key and a certificate, which is then signed by the newly created Root CA. - Configuration Generation: It creates a complete
httpd-vhosts.conffile in memory with proper redirects and correct, forward-slashed paths before writing it to disk. - Hosts File Update: Finally, it adds the new
127.0.0.1 -> yourdomain.namemappings to the Windowshostsfile.
This tool is designed to modify system files, including Apache configuration files, the Windows hosts file, and the Windows Certificate Store. It is intended for local development environments only. While tested, you use this tool at your own risk. It is always a good idea to back up your Apache conf directory before running.