<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Setup SSL Certificates on XAMPP Archives - the Sysadmin Channel</title>
	<atom:link href="https://thesysadminchannel.com/tag/setup-ssl-certificates-on-xampp/feed/" rel="self" type="application/rss+xml" />
	<link>https://thesysadminchannel.com/tag/setup-ssl-certificates-on-xampp/</link>
	<description>Documenting My Life as a System Administrator</description>
	<lastBuildDate>Wed, 09 Dec 2020 05:12:06 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.2</generator>
<site xmlns="com-wordpress:feed-additions:1">144174110</site>	<item>
		<title>How To Setup SSL Certificates on XAMPP</title>
		<link>https://thesysadminchannel.com/setup-ssl-certificates-on-xampp/</link>
					<comments>https://thesysadminchannel.com/setup-ssl-certificates-on-xampp/#respond</comments>
		
		<dc:creator><![CDATA[Paul Contreras]]></dc:creator>
		<pubDate>Mon, 24 Aug 2020 06:49:50 +0000</pubDate>
				<category><![CDATA[Server Administration]]></category>
		<category><![CDATA[httpd -vhosts.conf]]></category>
		<category><![CDATA[Setup SSL Certificates on XAMPP]]></category>
		<category><![CDATA[SSL on xampp]]></category>
		<category><![CDATA[xamp virtual host]]></category>
		<guid isPermaLink="false">https://thesysadminchannel.com/?p=2485</guid>

					<description><![CDATA[<p>In the recent days I&#8217;ve been dabbing more and more into the php and web application world. The reason was that I wanted to create a web application that the helpdesk or Jr Sysamins can use without necessarily giving them&#8230; <a href="https://thesysadminchannel.com/setup-ssl-certificates-on-xampp/" class="more-link">Continue Reading <span class="meta-nav">&#8594;</span></a></p>
<p>The post <a href="https://thesysadminchannel.com/setup-ssl-certificates-on-xampp/">How To Setup SSL Certificates on XAMPP</a> appeared first on <a href="https://thesysadminchannel.com">the Sysadmin Channel</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>In the recent days I&#8217;ve been dabbing more and more into the php and web application world.  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 <strong>setup SSL Certificates on XAMPP</strong>.</p>
<p>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.</p>
<h2>Setup SSL Certificates on XAMPP</h2>
<p>As we can see here I&#8217;ve setup my local xampp server and after piecing together a couple of articles, I finally got it working.</p>
<p><a href="https://thesysadminchannel.com/wp-content/uploads/2020/12/SSL-Certificate-Setup-for-Xampp.png" target="_blank" rel="noopener noreferrer"><img fetchpriority="high" decoding="async" src="https://thesysadminchannel.com/wp-content/uploads/2020/12/SSL-Certificate-Setup-for-Xampp.png" alt="SSL Certificate Setup for Xampp" width="594" height="276" class="aligncenter size-full wp-image-2560" /></a><br />
&nbsp;</p>
<p>I should mention that the certificate I am using is not a self signed cert, but rather an actual Public SSL certificate from Let&#8217;s Encrypt.  If you want to know how I did that, please check out my article on how to <a href="https://thesysadminchannel.com/create-free-lets-encrypt-ssl-certificates-using-powershell/" rel="noopener noreferrer" target="_blank">Create Free Lets Encrypt SSL Certificates Using Powershell</a>.  This article goes in depth and even has a video walkthrough if you prefer that method.</p>
<p>&nbsp;<br />
Now that we got that covered, let&#8217;s take this step by step on how to setup SSL certificates on Xampp.  Assuming you installed Xampp in the default directory of C:\xampp here&#8217;s how to do it.</p>
<ul>
<li>Navigate to <strong>c:\xampp\apache</strong> and create a <strong>&#8216;cert&#8217;</strong> folder</li>
<li>Copy the <strong>cert.cer</strong> and the <strong>cert.key</strong> that we got from Let&#8217;s Encrypt</li>
<li>Paste those 2 files in to this directory</li>
</ul>
<p><a href="https://thesysadminchannel.com/wp-content/uploads/2020/12/Certificates-in-cert-directory.png" target="_blank" rel="noopener noreferrer"><img decoding="async" src="https://thesysadminchannel.com/wp-content/uploads/2020/12/Certificates-in-cert-directory.png" alt="Certificates in cert directory" width="795" height="312" class="aligncenter size-full wp-image-2561" srcset="https://thesysadminchannel.com/wp-content/uploads/2020/12/Certificates-in-cert-directory.png?v=1607486786 795w, https://thesysadminchannel.com/wp-content/uploads/2020/12/Certificates-in-cert-directory-768x301.png?v=1607486786 768w" sizes="(max-width: 795px) 100vw, 795px" /></a><br />
&nbsp;</p>
<p>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.  </p>
<ul>
<li>While logged into a domain controller, open DNS Management</li>
<li>Expand the root of the domain namespace you want to use</li>
<li>In my case I&#8217;m using tool.thesysadminchannel.com so I&#8217;m using thesysadminchannel.com namespace</li>
<li>Right click and create New Host (A or AAAA) record</li>
<li>Enter the URL you would like to have</li>
<li>Enter the IPaddress of the server you want to point it back to (In this case our local xampp server)</li>
</ul>
<p><a href="https://thesysadminchannel.com/wp-content/uploads/2020/12/SSL-Certificate-A-Record-Creation.png" target="_blank" rel="noopener noreferrer"><img decoding="async" src="https://thesysadminchannel.com/wp-content/uploads/2020/12/SSL-Certificate-A-Record-Creation.png" alt="SSL Certificate A Record Creation" width="1089" height="495" class="aligncenter size-full wp-image-2563" srcset="https://thesysadminchannel.com/wp-content/uploads/2020/12/SSL-Certificate-A-Record-Creation.png?v=1607488087 1089w, https://thesysadminchannel.com/wp-content/uploads/2020/12/SSL-Certificate-A-Record-Creation-1024x465.png?v=1607488087 1024w, https://thesysadminchannel.com/wp-content/uploads/2020/12/SSL-Certificate-A-Record-Creation-768x349.png?v=1607488087 768w" sizes="(max-width: 1089px) 100vw, 1089px" /></a><br />
&nbsp;</p>
<p>Now that we have the certificate placed in the correct directory and we&#8217;ve setup our Host A record to be able to access the URL from any location in our network. It&#8217;s time to modify the apache config file to use this cert.</p>
<ul>
<li>Navigate to <strong>C:\xampp\apache\conf\extra\httpd-vhosts.conf</strong> and open with your editor of choice</li>
<li>Enter in the following config to create a new https virtual host</li>
</ul>
<pre class="brush: xml; title: ; notranslate">
&lt;VirtualHost *:443&gt;
    ServerAdmin webmaster@thesysadminchannel.com
    DocumentRoot &quot;C:/xampp/htdocs&quot;
    ServerName tool.thesysadminchannel.com
    ErrorLog &quot;logs/tool.log&quot;
    CustomLog &quot;logs/tool-access.log&quot; common
    SSLEngine on
    SSLCertificateFile &quot;C:/xampp/apache/cert/cert.cer&quot;
    SSLCertificateKeyFile &quot;C:/xampp/apache/cert/cert.key&quot;
&lt;/VirtualHost&gt;
</pre>
<p>&nbsp;</p>
<p>On the above be sure to take note of the following things.</p>
<ul>
<li>VirtualHost *:443 &#8211; This creates the port over 443 which is what SSL uses</li>
<li>The servername is the URL you plan on using.  In my case i&#8217;m using tool.thesysadminchannel.com so this is what I have configured here and my DNS records</li>
<li>SSL Engine is turned on</li>
<li>The SSL Certificate File and the SSL Certificate Key File are set to the path we created</li>
<li>The paths have forward slashes and not backslashes</li>
</ul>
<p><a href="https://thesysadminchannel.com/wp-content/uploads/2020/12/httpd-Certificate-Setup.png" target="_blank" rel="noopener noreferrer"><img decoding="async" src="https://thesysadminchannel.com/wp-content/uploads/2020/12/httpd-Certificate-Setup.png" alt="httpd Certificate Setup" width="1285" height="801" class="aligncenter size-full wp-image-2565" srcset="https://thesysadminchannel.com/wp-content/uploads/2020/12/httpd-Certificate-Setup.png?v=1607488899 1285w, https://thesysadminchannel.com/wp-content/uploads/2020/12/httpd-Certificate-Setup-1024x638.png?v=1607488899 1024w, https://thesysadminchannel.com/wp-content/uploads/2020/12/httpd-Certificate-Setup-768x479.png?v=1607488899 768w" sizes="(max-width: 1285px) 100vw, 1285px" /></a></p>
<p>Once you have that, we should be all done as far as the process on how to setup SSL Certificates on XAMPP server. Check it out and let me know if you run into any  snags with your setup.</p>
<p>Thanks again and if you&#8217;re interested in more sysadmin content, be sure to check out our <a href="https://thesysadminchannel.com/server-administration/" rel="noopener noreferrer" target="_blank">Server Administration category</a> as well as our <a href="https://www.youtube.com/c/theSysadminChannel" rel="noopener noreferrer" target="_blank">Youtube Channel</a>.</p>
<p>The post <a href="https://thesysadminchannel.com/setup-ssl-certificates-on-xampp/">How To Setup SSL Certificates on XAMPP</a> appeared first on <a href="https://thesysadminchannel.com">the Sysadmin Channel</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://thesysadminchannel.com/setup-ssl-certificates-on-xampp/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">2485</post-id>	</item>
	</channel>
</rss>
