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.
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/
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).
@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!
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.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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.