Page 1 of 1

Problem with Let's Encrypt Certificates

Posted: Sat Dec 04, 2021 10:04 pm
by ltm
Is anyone else having problems with using Let's Encrypt CA certificates with Apache using MAMP PRO. Every time I configure a new host and select a valid set of Let's Encrypt Certificates, Apache fails to start with the following error: AH01903: Failed to configure CA certificate chain!

After much trial and error I figured out that if I reinstall MAMP PRO, the host that I configured before with the SSL certificates works fine and Apache starts without problems.

Any ideas how to fix this without having to reinstall MAMP every time I add/change SSL configuration for a host?

Re: Problem with Let's Encrypt Certificates

Posted: Sun Dec 05, 2021 10:33 am
by mampsupportmod
Are you setting them up this way:

Cert File -> cert.pem
Cert Key File -> privkey.pem
Cert Chain File -> chain.pem

Re: Problem with Let's Encrypt Certificates

Posted: Mon Dec 06, 2021 2:35 pm
by ltm
I'm doing it from the UI, but generally yes. On the SSL tab of the specific host, I select the 3 files.

Re: Problem with Let's Encrypt Certificates

Posted: Wed Dec 08, 2021 3:01 pm
by ltm
I completely uninstalled MAMP and re-installed it. And it now seems to work as expected.

Re: Problem with Let's Encrypt Certificates

Posted: Wed Dec 08, 2021 7:55 pm
by mampsupportmod
ltm wrote: Wed Dec 08, 2021 3:01 pm I completely uninstalled MAMP and re-installed it. And it now seems to work as expected.
Thanks for letting us know

Re: Problem with Let's Encrypt Certificates

Posted: Wed Dec 08, 2021 8:56 pm
by ltm
I just installed the 6.6.1 update and now Apache no longer starts :( Can you please investigate this - I cannot be the only user using Let's Encrypt certificates.

And one other thing: every time I turn off the Enable SSL checkbox for a host, the app deletes the certificate and the private key files. Why?