The instructions have been verified with OSX El Capitan (10.11.2) running Apache 2.4.16.Thanks again and if you’re interested in more sysadmin content, be sure to check out our Server Administration category as well as our Youtube Channel.The following will guide you through the process of enabling SSL on a Apache webserver Check it out and let me know if you run into any snags with your setup. Once you have that, we should be all done as far as the process on how to setup SSL Certificates on XAMPP server. The paths have forward slashes and not backslashes.The SSL Certificate File and the SSL Certificate Key File are set to the path we created. ![]() In my case i’m using so this is what I have configured here and my DNS records The servername is the URL you plan on using.VirtualHost *:443 – This creates the port over 443 which is what SSL uses.On the above be sure to take note of the following things. SSLCertificateKeyFile "C:/xampp/apache/cert/cert.key" SSLCertificateFile "C:/xampp/apache/cert/cert.cer" Enter in the following config to create a new https virtual host.Navigate to C:\xampp\apache\conf\extra\nf and open with your editor of choice.It’s time to modify the apache config file to use this cert. ![]() Now that we have the certificate placed in the correct directory and we’ve setup our Host A record to be able to access the URL from any location in our network. Enter the IPaddress of the server you want to point it back to (In this case our local xampp server).Right click and create New Host (A or AAAA) record.In my case I’m using so I’m using namespace.Expand the root of the domain namespace you want to use.While logged into a domain controller, open DNS Management.Since I am running this at the domain level, I am using Domain Admin privileges. This will allow any computer in the domain to access the URL and have it point to our instance. Next, since I want to eventually access the web application from other browsers I am going to setup a DNS HOST A record. Paste those 2 files in to this directory.Copy the cert.cer and the cert.key that we got from Let’s Encrypt.Navigate to c:\xampp\apache and create a ‘cert’ folder.Assuming you installed Xampp in the default directory of C:\xampp here’s how to do it. Now that we got that covered, let’s take this step by step on how to setup SSL certificates on Xampp. This article goes in depth and even has a video walkthrough if you prefer that method. If you want to know how I did that, please check out my article on how to Create Free Lets Encrypt SSL Certificates Using Powershell. I should mention that the certificate I am using is not a self signed cert, but rather an actual Public SSL certificate from Let’s Encrypt. Setup SSL Certificates on XAMPPĪs we can see here I’ve setup my local xampp server and after piecing together a couple of articles, I finally got it working. The code that I was testing required https so I was off to my Google-venture. However, when it came to test the security I realized that it had not been secured with a proper certificate so I was unable to use HTTPS. ![]() I wanted to setup a quick and dirty site on my localhost and found that xampp was the perfect solution for my Windows 10 machine. The benefits (or topic) of this is not really in scope of the article but I did want to document the process to use and setup SSL Certificates on XAMPP. Some examples of this would be automating the new hire onboarding process, deploying a server in VMware or even generating a LAPS password. The reason was that I wanted to create a web application that the helpdesk or Jr Sysamins can use without necessarily giving them full blown permissions to the infrastructure. In the recent days I’ve been dabbing more and more into the php and web application world.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |