Hello. I have been successfully using LetsEncrypt certificates with MAMP PRO on my iMac for quite a while now. It’s a bit of a strange setup, but it works.
However, I am in process of switching from MAMP PRO to AMPPS on my iMac.
Currently, I am trying to enable SSL on my new AMPPS server using my LetsEncrypt certificates. I found some online information which pointed me to AMPSS/apache/conf in my “Applications” folder. Thus, I have located the following folders in the AMPPS apache/conf folder:
ssl_crl
ssl_crt
ssl_csr
ssl_key
In the “ssl_crt” folder, there are three files:
mydomain.com.crt
localhost.crt
server.crt
The “ssl_crl” folder is empty.
Finally, the “ssl_csr” folder contains these three files:
mydomain.com.csr
localhost.csr
server.csr
And in the “ssl_key” folder, there are also three files:
mydomain.com.key
localhost.key
server.key
Obviously, the ones that say “mydomain” above, actually have my real domain name.
Assuming that this is the right place to put the certificates – that is, copies of them – my three-part question is the following. I have the following four certificate and key files issued to me by LetsEncrypt, which I renew via the Terminal app every three months:
cert1.crt
chain1.crt
fullchain1.crt
privkey1.key
It is my understanding that I only need to be concerned about where to put the last two files, although I could be mistaken.
So my first question is this:
Which file goes in which of the above-named four folders?
My second question is this:
Do I need to rename these files so that AMPPS recognizes them as valid certificate and key files?
My third question is this:
I am assuming that I am going to have to edit some conf files somewhere. Can you please tell me which ones, and exactly how to edit them?
If there is an even easier way to do this – such as somehow just pointing my server to “private/etc/letsencrypt” – I’d love to hear about it.
Thank you so much. I hope to hear from someone here soon.