※バージョンによって多少パス等違うかも
/Applications/MAMP/conf/apache/httpd.conf
コメントアウトしてhttpd-ssl.confを読み込む
httpd.conf
# Secure (SSL/TLS) connections
Include /Applications/MAMP/conf/apache/extra/httpd-ssl.conf
/Applications/MAMP/conf/apache/extra/httpd-ssl.conf
httpd-ssl.conf
SSLCertificateFile "/Applications/MAMP/conf/apache/ssl/localhost.crt"
SSLCertificateKeyFile "/Applications/MAMP/conf/apache/ssl/localhost.key"
/Applications/MAMP/conf/apache/extra/httpd-vhosts.conf
httpd-vhosts.conf
NameVirtualHost *:443
<VirtualHost *:443>
ServerAdmin admin@localhost
DocumentRoot "/Documents/localhost"
ServerName localhost
SSLEngine on
SSLCertificateFile /Applications/MAMP/conf/apache/ssl/localhost.crt
SSLCertificateKeyFile /Applications/MAMP/conf/apache/ssl/localhost.key
</VirtualHost>
###うまくいかない時に
MAMPのコンパネで起動すると何が原因かわからないので、
下記コマンドでエラーが有る場合わかりやすい(sudo必要)
/Applications/MAMP/Library/bin/apachectl start
/Applications/MAMP/Library/bin/apachectl stop