The script can be found in the Apache folder of the XAMPP installation, in a standard installation on Windows this is the path: C:\xampp\apache.Luckily, XAMPP already has a little script ready for us that we can use and open like this: Create Certificateįirst, we have to create our own SSL certificate. In order to allow also HTTPS, the following steps are necessary additionally. After this setup, all domains can only be accessed via HTTP. In my tutorial about virtual domains, I had already explained the basics of how to define domains with XAMPP and Apache, which can then point to a local directory in the XAMPP installation. You can use that, for example, in the case that your online website is running over HTTPS and you want to use the same link structure also for testing. ![]() In the recent days I’ve been dabbing more and more into the php and web application world.In this tutorial, I would like to show you how to set up your XAMPP configuration in a way that you can access your local PHP projects via SSL and in the browser via an HTTPS URL. 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. ![]() Some examples of this would be automating the new hire onboarding process, deploying a server in VMware or even generating a LAPS password. 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. 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. 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. The code that I was testing required https so I was off to my Google-venture. 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. 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. 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. This article goes in depth and even has a video walkthrough if you prefer that method. Now that we got that covered, let’s take this step by step on how to setup SSL certificates on Xampp. #XAMPP SSL CERTIFICATE LOCALHOST HOW TO#Īssuming you installed Xampp in the default directory of C:\xampp here’s how to do it. 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. Next, since I want to eventually access the web application from other browsers I am going to setup a DNS HOST A record. This will allow any computer in the domain to access the URL and have it point to our instance. Since I am running this at the domain level, I am using Domain Admin privileges. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |