News for hackers. Stuff that matters.
Re:Dehydrated: Letsencrypt/acme client implemented as a shel... by chx on Saturday April 20, 2024 @09:41AM (#40097305)
I am doing docker run -it --rm certbot/certbot

Is there a problem with that?

Re:Dehydrated: Letsencrypt/acme client implemented as a shel... by 9dev on Saturday April 20, 2024 @11:28AM (#40098093)
I wouldn’t call it a problem, but let’s hear what the Certbot docs have to say:

> this mode of operation is unable to install certificates or configure your webserver, because our installer plugins cannot reach your webserver from inside the Docker container. > > Most users should use the instructions at certbot.eff.org. You should only use Docker if you are sure you know what you are doing and have a good reason to do so.

These problems are solvable if you know what you do, but the whole premise of ACME was making it easier to obtain certificates; plus, I shouldn’t need to decide between an autonomous and hostile package manager or keeping a container environment running, secure, and configured - to set up bloody TLS certificates for a Webserver. That said, good for you if it works :)

Re:Dehydrated: Letsencrypt/acme client implemented as a shel... by chx on Saturday April 20, 2024 @11:50AM (#40098251)
I mount webserver docroot and /etc/letsencrypt directories into the certbot container, /docroot and /etc/letsencrypt mount points respectively, it is totally prepared for this.
Re:Dehydrated: Letsencrypt/acme client implemented as a shel... by 9dev on Saturday April 20, 2024 @05:23PM (#40101139)
How did you implement reloading the modified TLS certificates after renewal tho?
Re:Dehydrated: Letsencrypt/acme client implemented as a shel... by chx on Saturday April 20, 2024 @07:26PM (#40101903)
it's a two line script running periodically. the first line is docker the second is nginx -s reload. As /etc/letsencrypt dir is mounted from nginx into certbot, certbot upgrades that, nginx reload picks them up. Easy as pie.