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

"Error installing cert" for an artificial subdomain #25

Open
sevaa opened this issue Feb 10, 2025 · 0 comments
Open

"Error installing cert" for an artificial subdomain #25

sevaa opened this issue Feb 10, 2025 · 0 comments

Comments

@sevaa
Copy link

sevaa commented Feb 10, 2025

In my Cpanel site, there is a domain. Let's call it example.com. The hosting infrastructure creates a bunch of artificial hostnames underneath it:

  • autodiscover.example.com
  • cpanel.example.com
  • And 5 more

They are hosted effectively together. A single cert is used for all of them. In Cpanel's UI, there is a single line for all of them. When renewing the certs, you want to specify them all, so that the back-end at Let's Encrypt places all those hostnames into in the cert. So the certbot line goes:

certbot run -a cpanel -i cpanel --cpanel-credentials cred.ini -d example.com,autodiscover.example.com,...

Now, when you run that line, it installs the cert for example.com, then gives the following error:

Error installing the SSL certificate for autodiscover.example.com : The certificate could not be installed on the domain “autodiscover.example.com”.
Sorry, autodiscover.example.com is not one of the domains on your account.

Indeed it's not. As in, it's not a domain as a unit of hosting. Not a zone. But autodiscover.example.com doesn't need a separate cert, either. The one that covers example.com will cover it too.

The error message is not fatal (the cert is installed, after all, where it matters), but it's annoying and it throws off batch processing - as far as surrounding code is concerned, the certbot invocation has failed.

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

1 participant