https://shellcreeper.com/how-to-create-valid-ssl-in-localhost-for-xampp/
However I tried to use the built-in SSL configuration that comes with Xampp and I have some problems with it, most notable Chrome doesn't accept it. I tried to stay true for the built-in config as much as I can:
https://gist.github.com/DJviolin/00e6d3ddd308266ede151e78a00fd996
The built-in cert (that comes with Xampp) expired months ago. I have some recommendation from the gist which I share here:
- Have a clear documentation how to setup SSL with Xampp, because HTTPS is the new HTTP. We need to develop and test in the final form of our sites. Lighthouse testing is part of the Wordpress frontend development.
- Update the built-in localhost cert after expiration or re-generate at every Xampp release. The first option would be better for developers.
- Revision Xampp's SSL configs and settle around a single domain name, which everyone need to use (if you want yours, that's fine, you can still dig deep in Apache configs). Because of how browsers handling cookies, I suggest something with a dot under these reserved TLDs:
https://en.wikipedia.org/wiki/.localhost
Thank You!