You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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".
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: