SSL
To encrypt traffic between Apache and a web browser, you can use SSL. If you want to secure a production server, you should obtain a certificate file and a certificate key file from a Certificate Authority (CA). You can use a “dummy” certificate for testing SSL functionality.

-
SSL
Check to enable SSL. After creating or enabling your SSL certificates your sites will now use https.
-
Certificate File
Select your certificate file. The directory dialog will only show .crt files. -
Certificate Key File
Select your certificate key file. The directory dialog will only show .key files. -
Create Self-Signed Certificate…
Use “Create self-signed certificate…” if you want to test SSL functionality. Your browser will not recognize this certificate, and you will need to click through warnings when viewing your site in a browser.
-
- Certificate Chain File (Apache Only)
Select your chain file. The directory dialog will only show .key files; if your file has a different extension, you will need to rename it to use the .key extension.
-
Only allow connection using TLS protocols
Activating this option prevents web browsers from using old and insecure SSL protocols to connect to this host. Only connections using TLS 1.2 and TLS 1.3 are accepted; SSLv2, SSLv3, TLS 1.0, and TLS 1.1 are not.
- Information on how to make a host both ssl and non-ssl can be found in the How-To section.
- Information on how to redirect a http host to https using the MAMP PRO interface can be found in the How-To section.
- Information on how to redirect a http host to https using a .htaccess file can be found in the How-To section.