I'm running MAMP in your area on my small laptop, and I love to test around I'm able to in your area. Regrettably, since i have focus on e-commerce stuff (PHP), I normally pressure ssl in the majority of the checkout forms also it just fails on my small laptop. Can there be any easy configuration which i may be missing to permit "https" to operate under MAMP? Please be aware, I understand which i could configure Apache manually, re-compile PHP, etc. but I am just wondering if there's an simpler method for a lazy programmer.


First, create a duplicate of /Programs/MAMP.

Open /Programs/MAMP/conf/apache/httpd.conf
Beneath the line
# LoadModule foo_module modules/mod_foo.so
you add
LoadModule ssl_module modules/mod_ssl.so
Remove all lines <IfDefine SSL> in addition to </IfDefine SSL>.

Open /Programs/MAMP/conf/apache/ssl.conf
Remove all lines <IfDefine SSL> in addition to </IfDefine SSL>.
Discover the line determining SSLCertificateFile and SSLCertificateKeyFile, place it to
SSLCertificateFile /Programs/MAMP/conf/apache/ssl/server.crt SSLCertificateKeyFile /Programs/MAMP/conf/apache/ssl/server.key

Produce a new folder /Programs/MAMP/conf/apache/ssl
Drop in to the terminal an visit the new folder
compact disc /Programs/MAMP/conf/apache/ssl
Produce a private key, giving your password
openssl genrsa -des3 -out server.key 1024
Take away the password
clubpenguin server.key server-pw.key
openssl rsa -in server-pw.key -out server.key
Produce a certificate signing request, pressing return for default values
openssl req -new -key server.key -out server.csr
Produce a certificate
openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt

Restart your server. Should you encounter any problems look into the system log file. The very first time you visit https://localhost/ you'll be requested to simply accept the certificate.

You are able to customize the free version of MAMP make it possible for ssl automatically effortlessly. After you have setup all of the SSL areas of apache and also have it working to ensure that calling apachectl startssl works, just edit the file


inside your favorite text editor and alter the start argument to startssl and you'll have the MAMP launcher beginning apache in ssl way of you.

There does not appear to become an simpler way, unless of course you are prepared to buy MAMP Professional.

So far as I understand, the only method to use SSL with MAMP would be to configure mod_ssl for Apache. mod_ssl is bundled up with MAMP, and that i found configuration to become pretty straightforward. Observe that you'll most likely need to start Apache in the command line to make use of it:

/Programs/MAMP/bin/apache2/bin$ ./apachectl stop

/Programs/MAMP/bin/apache2/bin$ sudo ./apachectl startssl

An simpler solution are available here: http://world wide web.rockettheme.com/blog/coding/310-getting-ssl-to-work-with-mamp-professional

MAMP has support for SSL but it is hidden!!