Not being able to create a certificate for my mail domain name

This time I also wanted to create a SSL certificate for the mail domain but when I add my mail domain to the certbot commandline tool it fails with below error.

When looking at my DNS settings I see an A-record with the same IP address as my www domain name.

My domain is:

I ran this command:
letsencrypt certonly -d,, --manual

It produced this output:
Cleaning up challenges
Failed authorization procedure. (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from[secret] []: "\n\n404 Not Found\n\n

Not Found



  • The following errors were reported by the server:

    Type: unauthorized
    Detail: Invalid response from[secret]
    []: "\n\n404 Not

    Not Found


    To fix these errors, please make sure that your domain name was
    entered correctly and the DNS A/AAAA record(s) for that domain
    contain(s) the right IP address.
    My web server is (include version):
    Apache 2.4.25
    The operating system my web server runs on is (include version):

My hosting provider, if applicable, is:

I can login to a root shell on my machine (yes or no, or I don't know):
I'm using a control panel to manage my site (no, or provide the name and version of the control panel):
The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot):

Two things:

  1. Is there a specific reason you're using the --manual plugin? This is not recommended, as it's not easily automatable.
  2. What's your Apache configuration with regard to the subdomain?

Hi @stefanstranger and welcome to the LE community forum :slight_smile:

I agree with @Osiris, there is a functional Apache web server that can be used to obtain cert(s) for those names. There is really no need for doing anything manually.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.