Let’s Encrypt certificate locations won’t save
Let’s Encrypt certificate locations won’t save
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.
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.
-
- Site Admin
- Posts: 163
- Joined: Wed Jan 20, 2021 3:06 am
Re: Let’s Encrypt certificate locations won’t save
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:
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 Support Forums is an unofficial support forum covering MAMP & MAMP Pro solution stacks.
Re: Let’s Encrypt certificate locations won’t save
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.
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.
Re: Let’s Encrypt certificate locations won’t save
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.
Running without the chain.pem shows the proper certs in any browser but still shows as untrusted.
.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
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.
-
- Site Admin
- Posts: 163
- Joined: Wed Jan 20, 2021 3:06 am
Re: Let’s Encrypt certificate locations won’t save
Thanks for sharing. I would be hesitant to keep it that way, future versions of MAMP will revert those changesRadjin 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.
MAMP Support Forums is an unofficial support forum covering MAMP & MAMP Pro solution stacks.