Hello,
I have successfully installed Certbot using Homebrew on an iMac running El Capitan 10.11.6.
After some initial trouble, I realized that I had to choose “Other” as my web server software – as opposed to choosing “Apache” – because I run my web server using MAMP PRO 4.1, which uses its own proprietary version of Apache.
In other words, I think validation failed the first time around, because Certbot was looking for a running version of OS X’s built-in Apache, server, which I do not use. As I said, I use MAMP PRO instead.
After choosing the actual HTML directory for my domain in my MAMP PRO folder hierarchy – as per instructions I found online – Certbot sucessfully installed and verified all folders and files, which were installed in “/private/etc/letsencrypt”.
This includes a subfolder called “live” in which is another subfolder folder which bears my domain name. It is inside this last folder where the actual key and certificate files are found. These files are the following:
privkey.pem
fullchain.pem
chain.pem
cert.pem
However, these are only aliases, which appear to point right back to themselves when I do a “Get Info”.
Aside from the fact that those are aliases, and not the real files, the big problem is that MAMP PRO does not recognize .pem files. They are grayed out when I navigate to them.
I added the string “AddType application/x-x509-ca-cert .pem” to MAMP PRO’s “httpd-ssl.conf” file via the “File/Edit Template” menu, but that has not helped.
So I made copies of the “privkey.pem” and “fullchain.pem” files in the “live” folder, and changed the file extensions to “.key” and “.crt”. Then I set the paths to them in MAMP PRO on the SSL tab for my domain.
MAMP PRO recognizes the files, but I still cannot connect to the HTTPS version of my website, even after I restart MAMP PRO.
I am assuming that is because those files are just aliases, and not the real files themselves.
In another folder called “csr”, there is a file called “0000_csr-certbot”; and in a folder called “keys” there is another file called “0000_key-certbot”.
I made copies of these two files as well, and changed their extensions to “.crt” and “key”, and then set their path in MAMP PRO on the SSL tab for my domain.
But that still does not help. I still cannot connect to the HTTPS version of my server.
On top of all of that, if I create a second copy of my domain in MAMP PRO, and then set it up for SSL – even if those two files are wrong – I cannot connect to the regular HTTP version of my site either. Only after I remove the SSL version can I connect to the regular version again.
So I don’t know what to try next. I have run out of ideas. I would really appreciate some help with this.
Thanks so much!