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

DNS Validated Let's Encrypt Certificates #1060

Open
superflip1 opened this issue Jan 27, 2025 · 2 comments
Open

DNS Validated Let's Encrypt Certificates #1060

superflip1 opened this issue Jan 27, 2025 · 2 comments
Labels
Existing tutorial Changes on an existing tutorial

Comments

@superflip1
Copy link

Problem

When trying to obtain certificates for a FQDN like system.test.co.at (you normally own test.co.at and not co.at), the script fails.
The reason is, that in bash script "certbot-hetzner-auth.sh", only the last two parts of the name are striped - resulting in "co.at".

search_name=$( echo $CERTBOT_DOMAIN | rev | cut -d'.' -f 1,2 | rev)

Suggested Fix

A quickfix, if you are only using cers in such domain structure like test.co.at ist to change script to:
search_name=$( echo $CERTBOT_DOMAIN | rev | cut -d'.' -f 1,2,3 | rev)

Maybe it is better to cut only the hostname, but I'm not sure, if this would result in any other issue.

@svenja11 svenja11 added the Existing tutorial Changes on an existing tutorial label Jan 27, 2025
@svenja11
Copy link
Collaborator

@dschoeffm You wrote the tutorial. Could you take a look at this?

@superflip1
Copy link
Author

I exactly used this tutorial - and the issue occured following the tutorial.

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

No branches or pull requests

2 participants