-
-
Notifications
You must be signed in to change notification settings - Fork 270
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[enhancement]: ACME, TLS-DNS-01 support for generating certs #226
Comments
Unfortunately there are no Rust ACME libraries that support all the DNS servers that the Go library lego supports. In Rust there is just lers that supports only Cloudflare. To support DNS-01 this we'll have to implement the API for each DNS server so it might take a while. |
With the boilerplate code already merged I am willing to contribute Cloudflare DNS support |
Adding Cloudflare ACME DNS-01 support would be wonderful. (For me personally this is because port 443 is already in use by my Kubernetes cluster). |
Let's wait for some boilerplate The acme.sh has quite a lot of available scripts if someone needs inspiration |
"To support DNS-01 this we'll have to implement the API for each DNS server so it might take a while." No. You don't. Its called RFC2136, per #231 Sure the cloud providers requiring REST calls are different, but for the many people using NSD, BIND,Knot,PDNS etc. An RFC2136 implementation will fix it. |
I am running a web server on the same machine and I can't let stalwart bind port 443 because the web server is already using it. It is not possible (as far as I know) to perform TLS-ALPN-01 challenge behind a reverse proxy either, so I can't configure my web server to forward the traffic. The workaround is using cert-bot or similar and installing a certificate that both the web server and mail server can use. |
This is what I'm doing to, but it's a PITA. I'm using nginx as the reverse proxy so it's doing the TLS-ALPN-01 part and certbot is ensuring the certificate is good and valid at |
Sweet, that looks awesome! 😀 |
Which feature or improvement would you like to request?
Since TLS-ALPN-01 got introduced with ffba9b5 , it would be nice to support tls-dns-01 support for renewing and generating certificates.
Mail server Maddy does support this as well (written in Go) https://maddy.email/reference/tls-acme/#automatic-certificate-management-via-acme
There the syntax is a bit complicated but looks like this:
It requires mail, TOS agreement, optional hostname and the api token to the dns provider.
It uses certmagic (libdns). Not sure what would be an appropiate acme/dns library for Rust.
Is your feature request related to a problem?
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: