Certificate doesn't get created

Hey :slight_smile:
can anybody help me with this error? :o

My domain is: knocklive.de

I ran this command: certbot

It produced this output:

Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel): 1
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for knocklive.de
Waiting for verification...
Cleaning up challenges
Failed authorization procedure. knocklive.de (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://knocklive.de/.well-known/acme-challenge/5lEHsfhfKW_CkL5J7NYhwQ8vf8CzUuNj39Wy086aQig [217.79.187.69]: "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\n<html><head>\n<title>404 Not Found</title>\n</head><body>\n<h1>Not Found</h1>\n<p"

IMPORTANT NOTES:
 - The following errors were reported by the server:

   Domain: knocklive.de
   Type:   unauthorized
   Detail: Invalid response from
   http://knocklive.de/.well-known/acme-challenge/5lEHsfhfKW_CkL5J7NYhwQ8vf8CzUuNj39Wy086aQig
   [217.79.187.69]: "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML
   2.0//EN\">\n<html><head>\n<title>404 Not
   Found</title>\n</head><body>\n<h1>Not Found</h1>\n<p"

   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): apache2

The operating system my web server runs on is (include version): Ubuntu 18.04

I can login to a root shell on my machine (yes or no, or I don't know): yes

I'm using a control panel to manage my site (no, or provide the name and version of the control panel): no

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot): 0.27.0

1 Like

Welcome to the Let's Encrypt Community :slightly_smiling_face:

What is the output of this command?

sudo certbot certonly --apache -d "knocklive.de,www.knocklive.de" --dry-run

2 Likes

Hi :slight_smile:

It's:

root@knocklive:~# sudo certbot certonly --apache -d "knocklive.de,www.knocklive.de" --dry-run
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for knocklive.de
http-01 challenge for www.knocklive.de
Waiting for verification...
Cleaning up challenges

IMPORTANT NOTES:
 - The dry run was successful.
 - Your account credentials have been saved in your Certbot
   configuration directory at /etc/letsencrypt. You should make a
   secure backup of this folder now. This configuration directory will
   also contain certificates and private keys obtained by Certbot so
   making regular backups of this folder is ideal.
1 Like

Then try this:

sudo certbot --apache -d "knocklive.de,www.knocklive.de"

5 Likes

Thank you so much! It's working :smiley:

2 Likes

You are quite welcome. :blush:

If you need any further aid, just let us know.

3 Likes

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