In Xampp there's an out-of-the-box Apache SSL configuration with a pre-installed (although expired) root certificate, which pointing to localhost
domain. With a little bit of tweaking and freshly generated certs, we will use this built-in config with some tweaks for future web development. This guide is for Windows environment.
- First, visit
.\xampp\apache
folder and executemakecert.bat
. Figure out a password for allpass phrase
questions. Hit enter for every default or empty values (these are configured at.\xampp\apache\conf\openssl.cnf
file). Make sure you also enter a value for this question:Common Name (e.g. server FQDN or YOUR name) []:
. I choose thelocalhost
domain, because this is what the pre-installed cert comes with. I should note that, because how browsers handling cookies, a domain name with a dot (likedev.localhost
, orwww.localhost
) would be better (Explaining .localhost TLD), but for the sake of this tut