![mamp pro 5 ssl mamp pro 5 ssl](https://gdm-catalog-fmapi-prod.imgix.net/ProductScreenshot/e78196e9-3365-410c-a280-596da4dde15c.png)
For example, my dev environment for this site () runs as an Ubuntu server in a VMware virtual machine (VM) on his Mac. Why not just use regular HTTP locally? Because if your production site is HTTPS-only and you’re developing locally on regular HTTP, your dev and production environments are not as similar as they could be. In this article, we’ll walk through creating your own Certificate Authority for your local servers so that you can run HTTPS sites locally without issue.
![mamp pro 5 ssl mamp pro 5 ssl](https://documentation.mamp.info/en/MAMP-PRO-Windows/Settings/Hosts/SSL/SSL.png)
Even if you do manage to wrestle self-signed certificates into submission, you still end up with browser privacy errors. It will not create the certificates for you but it will create the necessary Apache configs for you.Setting up HTTPS locally can be tricky business. MAMP PRO does support SSL, well it lets you add new sites with SSL.
![mamp pro 5 ssl mamp pro 5 ssl](https://www.mamp.info/en/mamp-pro/mac/screenshots/MAMP-PRO-Expert-view-Redis.png)
SSLCertificateKeyFile "/Users/adampatterson/Sites/ssl/adam.wp.key" SSLCertificateFile "/Users/adampatterson/Sites/ssl/adam.wp.crt" TransferLog "/Applications/MAMP/logs/apache_ssl_access.log"ĬustomLog "/Applications/MAMP/logs/apache_ssl_request.log" "%t %h %x \"%r\" %b" SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULLĮrrorLog "/Applications/MAMP/logs/apache_ssl_error.log" XSendFilePath "/Users/adampatterson/Sites/personal/adam-wp" NameVirtualHost *:443ĭocumentRoot "/Users/adampatterson/Sites/personal/adam-wp" You should now see Or whatever site you created while following along. Adjust the following config to match your site location and certificate names. Next, somewhere just after your nf file create a new one called nf.
![mamp pro 5 ssl mamp pro 5 ssl](https://miro.medium.com/max/1400/1*n388WrnPtFnlt8KoOzlGyw.jpeg)
If you don’t, you will probably have issues with MAMP starting as it won’t be able to find the example files. Next open nf and remove the default, secure virtual host. Located MAMPS nf and make sure that “# Secure (SSL/TLS) connections” is uncommented and we are including nf. You would need to add and trust every unique certificate, and that’s not too much fun! Setup Apache Remember we created local-certificate-authority.pemīy doing this, Any certificate we add from this point on that has been generated using our CA will automatically be trusted. Open the Keychain Access tool and drag the. Now that we have all of these files, you can add them to Apples Keychain. out adam.wp.crt -days 1825 -sha256 -extfile adam.wp.ext Roll it all together openssl x509 -req -in adam.wp.csr -CA local-certificate-authority.pem -CAkey local-certificate-authority.key -CAcreateserial \ KeyUsage = digitalSignature, nonRepudiation, keyEncipherment, dataEncipherment Pay attention to DNS.1 = adam.wp if you wish to also include = to the file on a new line. Next, make a file called adam.wp.ext where we will need to add our DNS entries. Openssl req -new -key adam.wp.key -out adam.wp.csr
#Mamp pro 5 ssl install#
Install the certificate authority Make a CA-Signed certificate openssl genrsa -out adam.wp.key 2048 Generate the Certificate openssl req -x509 -new -nodes -key local-certificate-authority.key -sha256 -days 1825 -out local-certificate-authority.pem You will be prompted for a passphrase, which you should add. First, generate a Certificate Authority Generate the Key openssl genrsa -des3 -out local-certificate-authority.key 2048 Save the file, these changes is immediate.
#Mamp pro 5 ssl password#
This will need to be opened as admin, or you will need to use an editor that will prompt for a password once you save changes to the file. Let’s make a certificate for my local site adam.wpĪssuming that you don’t already have your local domain created, Head over and open up ‘/etc/hosts’ in your editor. Luckily this can be fixed with a bit of research and some command line typing. I don’t know if they did this as a way to supercharge the adoption of HTTPS, or if they were just being jerks. And not only did they buy it, but they also added it to Chrome and Firefoxes forced HTTPS preload list. That is until Google did the unthinkable. Local SSL has always been something that I ignored. I have an updated post on Super simple local wildcard SSL that will allow you to greatly simplify the certificate creation steps.