

Move the certificate files (server.key and server.crt) to:
MAMP SERVER START PAGE INSTALL
The following is what worked for me on a fresh install of MAMP 3.0.5. The filenames and locations changed and some of the commands in the conf files are different. Here's where the instructions from previous versions are a little off. Openssl rsa -in server.tmp -out server.key # remove the password requirement from the server key Openssl x509 -req -days 1825 -in server.csr -signkey server.key -out server.crt # generate the certificate from the CSR for 5 years # answer the questions, use "localhost" for your Common NameĮmail address: challenge password: # leave blank Openssl req -new -key server.key -out server.csr # make up a passphrase and remember it, you’ll need it 3 more times. Openssl genrsa -des3 -out server.key 2048 Use the terminal to generate a private key in your default folder: cd ~ This part is straight from the tutorials, so if you already did it you can skip to "Set up MAMP". Update: Still works on Yosemite after fixing Apache as described in this answer.įurther Update: Comments suggest this still works at least through MAMP 5.4. Here's what worked for me, starting from a fresh install of MAMP 3.0.5 on Mavericks without Pro. If you're using MAMP 3 or 4 the instructions are slightly different.
MAMP SERVER START PAGE UPDATE
In between, update all certificate references to the newly created files as per the above VirtualHost definition. Server.crt and server.key are the newly created ones as per the obove tuts' links.Īround line 35 and its closing tag around line 245 to enable the line. SSLCertificateKeyFile /Applications/MAMP/conf/ssl/server.key SSLCertificateFile /Applications/MAMP/conf/ssl/server.crt Listen 80ĭocumentRoot /Users/myname/Documents/DevProjects/WebdevProjects Please follow the tuts listed above to get the certificate/key created and the password removed (as also mentioned by below).Ĭomment out the ifdef to make sure LoadModule is executed # The following are the changes i have made to the config files to get https working. Has anyone done this with os x 10.6.7? i have no idea where to go from here. Looking at phpinfo, i can't see mod_ssl being loaded. I can hit either 127.0.0.1 or localhost with http but both and return host not found error. I have read and tried the following instructions: Ok fellow coders, I am trying to configure MAMP with SSL on my mac for development purposes.
