Skip to content
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

[Question] Wildcard subdomains #88

Open
abudiar opened this issue Aug 19, 2020 · 3 comments
Open

[Question] Wildcard subdomains #88

abudiar opened this issue Aug 19, 2020 · 3 comments

Comments

@abudiar
Copy link

abudiar commented Aug 19, 2020

So I have this set up and working for normal domains. But for the life of me I can't seem to get wildcard subdomain certificates. I simply cant figure out how to include the DNS plugins with the certbot on the init script.

Anyone have any experience with creating wildcard subdomain certificates with this repo?
Am I even going the correct direction, or am I looking at this in the wrong way?

Thanks!

@abudiar abudiar changed the title [Question] How would you implement wildcard subdomains with this? [Question] Wildcard subdomains Aug 19, 2020
@mpldr
Copy link

mpldr commented Sep 23, 2020

This repo uses Verification by webserver. to my knowledge wildcard certs are only possible with DNS-authenticators.

This might be helpful: https://community.letsencrypt.org/t/wildcard-domain-step-by-step/58250/4

I am not sure how auto-renewal works with DNS though.

@Danirill
Copy link

Did you solve the problem with installing the certificate on the subdomain?

@hodgef
Copy link

hodgef commented Dec 30, 2020

I managed to get DNS verification working like so (for Cloudflare):

Follow these docs (specifically the part about getting a cloudflare token):
https://certbot-dns-cloudflare.readthedocs.io/en/stable/

In your docker composer use the image called certbot/dns-cloudflare instead of certbot/certbot

Then, replace the cert issuing command to the following (you'll have to create cf.ini per the docs above):

certbot certonly \
$staging_arg \
$email_arg \
-d $domain \
--rsa-key-size $rsa_key_size \
--no-eff-email \
--agree-tos \
--force-renewal \
--dns-cloudflare \
--dns-cloudflare-credentials /etc/letsencrypt/cf.ini \
--dns-cloudflare-propagation-seconds 30

Regards,
Francisco Hodge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants