Page 1 of 1

Let’s Encrypt certificate locations won’t save

Posted: Wed Nov 27, 2024 3:22 am
by Radjin
Running an M1 Mac mini, with the latest OS and latest version of MAMP Pro 7.1.3. I successfully received certification from let’s encrypt using terminal. I changed permissions on the “/private/etc/letsencrypt/live” and archive folder so I could see them, and used the MAMP interface SSL tab to select the proper files for each box. The save button stayed greyed out. When I hit the start button it gives me an error that it cannot save due to missing files, and could only revert. I followed directions to make an alias of the live folder and move that to the desktop, and point MAMP to it. One site says to turn off “Automatically resolve selected, alias, or symbolic link”, another said turn it on, neither option worked in any of the above scenarios. The difference with it on shows a path to the proper files in the archive folder, off, it shows the file I choose in the live folder.

There’s a reference to changing it in the Apache ssh file but in the editable version within MAMP it references the MAMP data so I did not change anything.

Any suggestions. I know this has come up before, but didn’t find any reference to it.

Re: Let’s Encrypt certificate locations won’t save

Posted: Wed Nov 27, 2024 12:20 pm
by mampsupportmod
Whats permissions you used? Please open one of the keys (Right click -> Get Info) and show me permissions. You will still have to give your mac user access to the private key if you are using (in archive folder where real keys reside).


In my case, I use the alias' in live folder (i do not check the box to automatically resolve as you shouldnt need to)

See permissions for my key example:


Mamp Pro Ssl Certificate Permissions Macos
Mamp Pro Ssl Certificate Permissions Macos (14.66 KiB) Viewed 126173 times

Re: Let’s Encrypt certificate locations won’t save

Posted: Wed Nov 27, 2024 4:04 pm
by Radjin
Thanks for the quick reply.

Everything I read says do not touch the archive folder as the live folder is liked to the current cert. That way when the certs change the live folder will reflect that and I won't have to update it in the MAMP interface.
Screenshot 2024 11 27 At 11.06.11 AM
Screenshot 2024 11 27 At 11.06.11 AM (15.13 KiB) Viewed 126130 times

Re: Let’s Encrypt certificate locations won’t save

Posted: Fri Nov 29, 2024 2:55 pm
by Radjin
Replying to myself and anyone listening. I discovered MAMP will let me save the location of the cert.pem and privkey.pem. It will not save the location of the chain.pem though. When I try to run I get the following.
Screenshot 2024 11 29 At 9.26.26 AM
Screenshot 2024 11 29 At 9.26.26 AM (21.33 KiB) Viewed 125930 times
.

Running without the chain.pem shows the proper certs in any browser but still shows as untrusted.

Re: Let’s Encrypt certificate locations won’t save

Posted: Sat Nov 30, 2024 8:38 pm
by Radjin
I got it to work by making changes to the template file httpd-ssl.conf to point to the files in the live folder. Upon trying to start it failed with a config error. I commented out my changes and uncommented the original MAMP lines, restarted and it worked. Not sure what my changes and unchanged did but I am happy with the results.

Re: Let’s Encrypt certificate locations won’t save

Posted: Sun Dec 01, 2024 3:55 pm
by mampsupportmod
Radjin wrote: Sat Nov 30, 2024 8:38 pm I got it to work by making changes to the template file httpd-ssl.conf to point to the files in the live folder. Upon trying to start it failed with a config error. I commented out my changes and uncommented the original MAMP lines, restarted and it worked. Not sure what my changes and unchanged did but I am happy with the results.
Thanks for sharing. I would be hesitant to keep it that way, future versions of MAMP will revert those changes

Re: Let’s Encrypt certificate locations won’t save

Posted: Fri Dec 27, 2024 3:34 pm
by Radjin
Fixed in the latest update, Thanks.

Re: Let’s Encrypt certificate locations won’t save

Posted: Sat Dec 28, 2024 1:22 pm
by mampsupportmod
Radjin wrote: Fri Dec 27, 2024 3:34 pm Fixed in the latest update, Thanks.
You mean MAMP update? What version?

Thank you!

Re: Let’s Encrypt certificate locations won’t save

Posted: Sat Dec 28, 2024 11:38 pm
by Radjin
the last update to 7.2