dehydrated for python? #406

Closed
opened 2025-12-29 01:24:33 +01:00 by adam · 4 comments
Owner

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.

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.
adam closed this issue 2025-12-29 01:24:33 +01:00
Author
Owner

@cpu commented on GitHub (May 14, 2019):

I ask this because I'd like to use this script in a Python module without calling it externally with popen or subprocess.

Have you considered Certbot's acme module? 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/

@cpu commented on GitHub (May 14, 2019): > I ask this because I'd like to use this script in a Python module without calling it externally with popen or subprocess. Have you considered Certbot's `acme` module? 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/
Author
Owner

@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).

@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).
Author
Owner

@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 acme module programmatically. It sounds like you're keen to stick with Dehydrated so I'll bow out and let the maintainers respond. Good luck!

@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 `acme` module programmatically. It sounds like you're keen to stick with Dehydrated so I'll bow out and let the maintainers respond. Good luck!
Author
Owner

@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.

@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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/dehydrated#406