mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-01-11 22:30:44 +01:00
dehydrated for python? #406
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Tungsteno74 on GitHub (May 14, 2019).
Hello Lukas,
probably not the right place, but I don't know where else to ask:
Is there a Python version of "dehydrated"?
I ask this because I'd like to use this script in a Python module without calling it externally with popen or subprocess.
A quick google search did not lead to a positive result, so thanks in advance for your reply.
@cpu commented on GitHub (May 14, 2019):
Have you considered Certbot's
acmemodule? It isn't the most straight-forward API but you would be able to accomplish your goal with pure Python code (without needing the full Certbot): https://pypi.org/project/acme/@Tungsteno74 commented on GitHub (May 14, 2019):
hello @cpu, thanks for your reply.
I didn't go deeply on the certbot documentation , but reading the readme indicates that:
"In most cases, you need root or administrator access to your web server to run Certbot."
and this would be a problem for me.
For this reason I would like to use the dehydrated implementation, which from what I read in the following guide https://www.splitbrain.org/blog/2017-08/10-homeassistant_duckdns_letsencrypt does not need root/sudo access to request certificate or update it ( feel free to correct me about what i said).
@cpu commented on GitHub (May 14, 2019):
@Tungsteno74 for what its worth that applies to running Certbot (which can also be configured to run without root), and isn't particularly germane to using the
acmemodule programmatically. It sounds like you're keen to stick with Dehydrated so I'll bow out and let the maintainers respond. Good luck!@lukas2511 commented on GitHub (May 25, 2019):
Yea, if you need something python...y you may want to use the acme module. If you only need to trigger dehydrated from python you could easily use the subprocess module and just call dehydrated.