by diafygi · 11y ago · 0 comments
https://github.com/diafygi/letsencrypt-nosudo
The only thing that has to be run as sudo on your production server is a simple python one-liner that temporarily serves the required file. The script prints out this one-liner so you can copy and paste it into your server's terminal, then kill it when the challenge is done.
[0] https://github.com/letsencrypt/lets-encrypt-preview/blob/mas...
I would like to use this service, but I do not want a program to do things for me on my server unless it's part of the OS distribution, so this will help.
Why do you need sudo to serve a file though? Is it a restricted port?
The official Let's Encrypt client is mostly focused on ease of use. This script is mostly focused on not knowing your secrets or requiring privileged access, and it assumes you know what a CSR is and how to install a signed certificate on your webserver.
[1]: https://github.com/diafygi/letsencrypt-nosudo/blob/9607deb7b...
> the address of the CA is hardcoded in the program so be sure to use the official lets-encrypt
Now, the idea of a nosudo letsencrypt is a good idea, but if such a thing should exist it should be made on the officiel repo and audited like lets encrypt was (note that this is just my opinion).