25 May 2010
Get SSL working on MAMP Pro
Here’s what I did to get MAMP Pro working so I could test the HTTPS pages of the site I’m working on.
1) Follow these instructions from Rocket Theme to the letter. I didn’t need to deal with any of the “Possible Issues” section.
2) Go into “/Applications/MAMP/conf/apache/ssl.conf” and add a new vhost within the <IfDefine> blocks at the end of the page. This vhost will mirror the settings of the vhost you would have already setup in MAMP:
<VirtualHost test.dev:443>
DocumentRoot "/Path/to/document/root"
ServerName test.dev
SSLEngine on
SSLCertificateFile /Applications/MAMP/conf/apache/ssl_crt/server.crt
SSLCertificateKeyFile /Applications/MAMP/conf/apache/ssl_key/server.key
<Directory "/Path/to/document/root">
Options All
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
3) That’s really it. Restart MAMP and you’re good to go.

