Let’s Encrypt certificate locations won’t save

All MAMP discussions around troubleshooting and anything related to MAMP. Be as detailed as possible here when posting an issue.
Post Reply
Radjin
Posts: 6
Joined: Wed Nov 27, 2024 2:59 am

Let’s Encrypt certificate locations won’t save

Post 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.
mampsupportmod
Site Admin
Posts: 163
Joined: Wed Jan 20, 2021 3:06 am

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

Post 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 474 times
MAMP Support Forums is an unofficial support forum covering MAMP & MAMP Pro solution stacks.
Radjin
Posts: 6
Joined: Wed Nov 27, 2024 2:59 am

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

Post 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 431 times
Radjin
Posts: 6
Joined: Wed Nov 27, 2024 2:59 am

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

Post 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 231 times
.

Running without the chain.pem shows the proper certs in any browser but still shows as untrusted.
Radjin
Posts: 6
Joined: Wed Nov 27, 2024 2:59 am

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

Post 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.
mampsupportmod
Site Admin
Posts: 163
Joined: Wed Jan 20, 2021 3:06 am

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

Post 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
MAMP Support Forums is an unofficial support forum covering MAMP & MAMP Pro solution stacks.
Post Reply