-
Notifications
You must be signed in to change notification settings - Fork 3
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
Cannot get certificates for subdomains #9
Comments
Ran into this issue today and fixed it by explicity setting
The README says:
I assume this plugin uses an old url (https://ote.domrobot.com/jsonrpc/), although libdns/inwx uses the current one. @ihmels you seem do manage both repos, do you have an idea? |
@david-askari This plugin uses the URL that is stored in libdns/inwx if @GabrielZirk Do you have two-factor authentication enabled in your INWX account? |
Hello, No I did not use 2FA and ended up not using the automatic certificate management. However, thank you for your help. Will try it ASAP. Best |
@ihmels you were right, no need to explicitly state @GabrielZirk After some back and forth, I got subdomains and wildcard subdomains working for me: {
# debug
# acme_ca https://acme-staging-v02.api.letsencrypt.org/directory
email [email protected]
}
domain.tld {
tls {
resolvers 1.1.1.1
dns inwx {
username <username>
password <password>
}
}
# Service #1
reverse_proxy localhost:1111
}
*.domain.tld {
tls {
resolvers 1.1.1.1
dns inwx {
username <username>
password <password>
}
}
# Service #2
@service host service.domain.tld
handle @service {
reverse_proxy localhost:2222
}
# Fallback for otherwise unhandled domains
handle {
abort
}
}
sub.domain.tld {
tls {
resolvers 1.1.1.1
dns inwx {
username <username>
password <password>
}
}
# Service #3
reverse_proxy localhost:3333
}
*.sub.domain.tld {
tls {
resolvers 1.1.1.1
dns inwx {
username <username>
password <password>
}
}
# Service #4
@service host service.sub.domain.tld
handle @service {
reverse_proxy localhost:4444
}
# Fallback for otherwise unhandled domains
handle {
abort
}
} I'm running Caddy as a systemd service, also no 2FA and use the ACME DNS challenge. Due to the DNS issue above, I'm explicitly setting |
Hello module author,
obtaining certificates for my https://domainname.dev works perfectly fine, but I am not able to get them for any subdomain, including https://www.domainname.dev.
This is my Caddyfile:
This is my Dockerfile:
And my compose.yml to start my docker docktainer:
Of course there are A records for www.domainname.dev and home.domainname.dev!
Since I get the certificate for https://domainname.dev, I dont think there is an issue with incorrect credentials and the are properly served by my .env file.
However, there seems to be something wrong with the authentication, see caddy log output below:
Any help is appreciated, thanks in advance!
Best
The text was updated successfully, but these errors were encountered: