How to Install SSL on XAMPP for Windows: A Beginner-Friendly Guide


If you’ve ever developed a website locally using XAMPP and wondered how to enable HTTPS, you’re in the right place. Installing SSL on XAMPP might sound technical, but with the right steps, you’ll be running your site securely in no time. Here’s a simple guide to get SSL working on XAMPP for Windows.

Step 1: Generating an SSL Certificate

The first step is to create an SSL certificate. Don’t worry—this isn’t as hard as it sounds. XAMPP comes with a built-in tool for generating SSL certificates. Open your XAMPP folder, navigate to the 'apache' folder, and find 'makecert.bat' in the 'conf' folder. Run this file to generate your local certificate.

Step 2: Configuring Apache for SSL

After creating the certificate, it’s time to configure Apache to use it. Head over to the httpd-ssl.conf file in the 'conf/extra' folder inside the Apache directory. Here, you’ll need to specify the paths to your SSL certificate and private key. Don’t forget to uncomment the SSL-related lines so that Apache knows to use HTTPS.

Step 3: Updating the Hosts File

Now, let’s ensure your browser can recognize the SSL certificate. Go to c:/windows/system32/drivers/etc/hosts and add an entry for your local domain, something like 127.0.0.1 my-local-site.test. This allows you to access your local site using HTTPS without errors.

Step 4: Restart Apache and Test

Restart Apache from the XAMPP Control Panel to apply the changes. Once it’s running, open your browser and visit https://my-local-site.test. If everything went well, you should see your site load securely with no SSL warnings!

And there you have it! Setting up SSL on XAMPP is easier than you think. By following these steps, you can secure your local development environment and simulate real-world HTTPS for your websites.

Hajriah Fajar is a multi-talented Indonesian artist, writer, and content creator. Born in December 1987, she grew up in a village in Bogor Regency, where she developed a deep appreciation for the arts. Her unconventional journey includes working as a professional parking attendant before pursuing higher education. Fajar holds a Bachelor's degree in Computer Science from Nusamandiri University, demonstrating her ability to excel in both creative and technical fields. She is currently working as an IT professional at a private hospital in Jakarta while actively sharing her thoughts, artwork, and experiences on various social media platforms.

Thank you for stopping by! If you enjoy the content and would like to show your support, how about treating me to a cup of coffee? �� It’s a small gesture that helps keep me motivated to continue creating awesome content. No pressure, but your coffee would definitely make my day a little brighter. ☕️ Buy Me Coffee

Posting Komentar untuk "How to Install SSL on XAMPP for Windows: A Beginner-Friendly Guide"