rancher-letsencrypt icon indicating copy to clipboard operation
rancher-letsencrypt copied to clipboard

Wildcard/ACME v2 support

Open mKeRix opened this issue 6 years ago • 27 comments

Let's encrypt just launched the new API with wildcard support: https://community.letsencrypt.org/t/acme-v2-and-wildcard-certificate-support-is-live/55579. Certbot 0.22.0 and above already support the new features.

Would love to see these upstream in the rancher-letsencrypt project!

mKeRix avatar Mar 14 '18 06:03 mKeRix

FWIW: https://github.com/xenolf/lego/issues/457

willseward avatar Mar 14 '18 15:03 willseward

@janeczku any news on that?

blackholegalaxy avatar Mar 17 '18 19:03 blackholegalaxy

+1

Jefnull avatar Mar 31 '18 06:03 Jefnull

If we could get this updated to support wildcards that would be extremely awesome.

KryptionX avatar Apr 01 '18 19:04 KryptionX

+1

natiz avatar Apr 05 '18 15:04 natiz

+1

nbejansen avatar Apr 11 '18 11:04 nbejansen

Yes, wildcard support will awesome ! @janeczku , are u alive ?! ^^

Chuckame avatar Apr 11 '18 19:04 Chuckame

+1

bearmoo-cloud-net avatar Apr 12 '18 15:04 bearmoo-cloud-net

xenolf/lego#457 just got merged. Do we need to change here some code or just update the package?

B-Stefan avatar May 31 '18 07:05 B-Stefan

If you need to generate wildcard certificates with using ACME v2 then you can using these repos:

For using docker repo: docker pull vxcontrol/rancher-letsencrypt

I think that making a Pull Request does not make sense ((

asdek avatar Jun 10 '18 20:06 asdek

Why use a forked repo when we can have the official repo up-to-date with wildcard support ? This is the purpose of a PR (I think)..

Chuckame avatar Jun 11 '18 15:06 Chuckame

@Chuckame because there is no vital sign from the author and repo maintainer to accept a PR?

blackholegalaxy avatar Jun 11 '18 16:06 blackholegalaxy

@Chuckame I made PR#114 to main repo. Let's see together how quickly it will be merged.

@blackholegalaxy I fully support your opinion.

asdek avatar Jun 11 '18 19:06 asdek

@asdek, Is there any catalog including your repository with the changes? I think it's a good idea to create a catalog for that, like this repository has in rancher community catalog. Thanks anyways for the update!

jotolo avatar Jun 12 '18 14:06 jotolo

@jotolo, You can use https://github.com/vxcontrol/rancher-catalog.git repo and branch public. Or you can change field Select Image to vxcontrol/rancher-letsencrypt:v1.0.0 after deploying package from community catalog. PS I very much hope that the author will accept the changes and this will be available in the original package.

asdek avatar Jun 12 '18 14:06 asdek

@asdek I did the second option and it worked like charm! Thank you for the PR! I hope those who have the same issue can use this solution.It's very good to have it! I hope like you the PR to be merged. Thanks again @asdek

jotolo avatar Jun 12 '18 15:06 jotolo

@asdek

I replace docker image to docker vxcontrol/rancher-letsencrypt. I ran the image and I'm getting this error:

6/12/2018 7:24:04 PMtime="2018-06-13T02:24:04Z" level=info msg="Using HTTP challenge: Sleeping for 120 seconds before requesting certificate" 6/12/2018 7:24:04 PMtime="2018-06-13T02:24:04Z" level=info msg="Make sure that HTTP requests for '/.well-known/acme-challenge' for all certificate domains are forwarded to port 80 of the container running this application" 6/12/2018 7:26:04 PMtime="2018-06-13T02:26:04Z" level=info msg="Trying to obtain SSL certificate (example.net,*.example.net) from Let's Encrypt Production CA" 6/12/2018 7:26:04 PMtime="2018-06-13T02:26:04Z" level=info msg="[INFO][example.net, .example.net] acme: Obtaining bundled SAN certificate" 6/12/2018 7:26:05 PMtime="2018-06-13T02:26:05Z" level=info msg="[INFO][.example.net] AuthURL: https://acme-v02.api.letsencrypt.org/acme/authz/cLnZCIg3jc_l16zduayBdwa1tK1xEDB_haUNZohrN_c" 6/12/2018 7:26:05 PMtime="2018-06-13T02:26:05Z" level=info msg="[INFO][example.net] AuthURL: https://acme-v02.api.letsencrypt.org/acme/authz/wy7n1Q5P34bpcdtkPx5TCeJM82C8dikP3uzbuW5ECwc" 6/12/2018 7:26:05 PMtime="2018-06-13T02:26:05Z" level=info msg="[INFO][example.net] acme: Authorization already valid; skipping challenge" 6/12/2018 7:26:05 PMtime="2018-06-13T02:26:05Z" level=info msg="[INFO][example.net] acme: Could not find solver for: dns-01" 6/12/2018 7:26:05 PMtime="2018-06-13T02:26:05Z" level=error msg="[acme: Error -> One or more domains had a problem:\n[example.net] [example.net] acme: Could not determine solvers\n] Error obtaining certificate: acme: Error -> One or more domains had a problem:\n[example.net] [example.net] acme: Could not determine solvers\n"

bearmoo-cloud-net avatar Jun 13 '18 02:06 bearmoo-cloud-net

@bearmoo-repo Which one provider you use?

asdek avatar Jun 13 '18 06:06 asdek

@asdek it would be no-ip

bearmoo-cloud-net avatar Jun 13 '18 07:06 bearmoo-cloud-net

@bearmoo-repo I was asking about DNS provider. Because I tested on Route53 and CloudFlare, the problem was observed once with the fact that CloudFlare did not have time to update the DNS-record. I can try to incorporate some delay and define it through Environment Variable.

asdek avatar Jun 13 '18 07:06 asdek

www.noip.com is my DNS provider.

bearmoo-cloud-net avatar Jun 13 '18 07:06 bearmoo-cloud-net

Is it all possible to get the information that I need to add into TXT?

bearmoo-cloud-net avatar Jun 13 '18 07:06 bearmoo-cloud-net

www.noip.com is my DNS provider.

ok, thanks. I'll see what can do here. If you want to add a TXT-record manually, you can use this service: https://www.sslforfree.com/

cLnZCIg3jc_l16zduayBdwa1tK1xEDB_haUNZohrN_c wy7n1Q5P34bpcdtkPx5TCeJM82C8dikP3uzbuW5ECwc

In your log most likely these 2 values should be added within the TXT-records.

asdek avatar Jun 13 '18 07:06 asdek

@janeczku Would you be willing to make @asdek or another contributor a maintainer of this project to allow it to move forward?

solocommand avatar Jul 10 '18 13:07 solocommand

The v1 API was just deactivated so renewals stopped working. Fortunately it seems like https://hub.docker.com/r/vxcontrol/rancher-letsencrypt works as a drop-in replacement. I recommend everyone having problems to upgrade to it instead. It being vxcontrol/rancher-letsencrypt:v1.0.0

JoelESvensson avatar Oct 21 '19 10:10 JoelESvensson

I guess https://github.com/TrueCarry/rancher-letsencrypt/tree/acme-v2 is better updated

grabekm90 avatar Nov 21 '19 13:11 grabekm90

ACME v2 - For anyone still trying to do this, check out https://gist.github.com/fridgerator/db607d268f1f99329c8f9449e89abb4f

bkuhl avatar May 02 '20 11:05 bkuhl