**NOTE: Since I posted this, Google have acquired the .dev
top level domain, so it's not advised to use .dev
hostnames for your local development. I use *.dv
now. When reading this answer, please replace .dev
with .test
or something else when recreating the steps in your own project. Use of .local
is not advised **
Chrome now requires SSL certificates to use the "Subject Alt Name" (SAN) rather than the old Common Name. This breaks self-signed certs previously generated by MAMP.
Fortunately, the workaround is pretty straightforward.
Here are all the steps from the very first moment of setting a host to be SSL in MAMP Pro. If you previously created SSL certificates in MAMP, then I've found that deleting them and starting again using this method works.
Create your hostname, eg. test.dev
and select your document root
Click the SSL tab, and check the "SSL" box. Make sure you leave the other checkbox "Only allow connections using TLS protocols" unchecked.
/Applications/MAMP/Library/OpenSSL/certs/
.crt
file that is highlighted - it should be named like your host, eg. if your host is test.dev
then your certificate file will be test.dev.crt
. This should open Keychain Access and you should see the new certificate in there.https
in the browser
bar.