XAMPP with SSL, year 2020
Posted: 24. September 2020 15:39
Hi Guys, i've been trying to do something possible, but it's 8 hours straight failed efforts to make XAMPP latest version with PHP 7 work with SSL in Windows Environment.
But let's go step by step.
1) Downloaded and installed XAMPP on e:\xampp
2) Tried previous solutions with continuous editing of conf files in Apache and finally came to this.
3) I have generate the SSL certificates using solution from online and placed it in "E:\xampp\apache\crt\ikeen.localhost"
4)I have successfully imported them to Windows
5) I have added 127.0.0.1 ikeen.localhost to hosts file.
6) Then I added the following to httpd-xampp.conf:
## ikeen.localhost
<VirtualHost *:80>
DocumentRoot "E:/xampp/htdocs/ikeen"
ServerName ikeen.localhost
ServerAlias *.ikeen.localhost
</VirtualHost>
<VirtualHost *:443>
DocumentRoot "E:/xampp/htdocs/ikeen"
ServerName ikeen.localhost
ServerAlias *.ikeen.localhost
SSLEngine on
SSLCertificateFile "crt/ikeen.localhost/server.crt"
SSLCertificateKeyFile "crt/ikeen.localhost/server.key"
</VirtualHost>
7) HTTPs is not working, when I open http://ikeen.localhost I can see the site without any images as all the images get "Failed to load resource: net::ERR_CONNECTION_RESET" in the Console.
When I try to open https://ikeen.localhost I immediately get Connection reset error in Chrome and Opera. The worst part is that I can't even see what is the problem as error.log in Apache does not show anything special
Please any possible idea how to make SSL work?
But let's go step by step.
1) Downloaded and installed XAMPP on e:\xampp
2) Tried previous solutions with continuous editing of conf files in Apache and finally came to this.
3) I have generate the SSL certificates using solution from online and placed it in "E:\xampp\apache\crt\ikeen.localhost"
4)I have successfully imported them to Windows
5) I have added 127.0.0.1 ikeen.localhost to hosts file.
6) Then I added the following to httpd-xampp.conf:
## ikeen.localhost
<VirtualHost *:80>
DocumentRoot "E:/xampp/htdocs/ikeen"
ServerName ikeen.localhost
ServerAlias *.ikeen.localhost
</VirtualHost>
<VirtualHost *:443>
DocumentRoot "E:/xampp/htdocs/ikeen"
ServerName ikeen.localhost
ServerAlias *.ikeen.localhost
SSLEngine on
SSLCertificateFile "crt/ikeen.localhost/server.crt"
SSLCertificateKeyFile "crt/ikeen.localhost/server.key"
</VirtualHost>
7) HTTPs is not working, when I open http://ikeen.localhost I can see the site without any images as all the images get "Failed to load resource: net::ERR_CONNECTION_RESET" in the Console.
When I try to open https://ikeen.localhost I immediately get Connection reset error in Chrome and Opera. The worst part is that I can't even see what is the problem as error.log in Apache does not show anything special
Please any possible idea how to make SSL work?