Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache
-------------------------------------------------------------------------------
You have an existing certificate that contains a portion of the domains you
requested (ref: /etc/letsencrypt/renewal/grendel.no-0005.conf)
It contains these names: grendel.no, blog.grendel.no, ptsd-boken.grendel.no,
r.grendel.no, www.grendel.no
You requested these names for the new certificate: grendel.no, blog.grendel.no,
r.grendel.no, www.grendel.no, ptsd-boken.grendel.no, diaspora.grendel.no.
Do you want to expand and replace this existing certificate with the new
certificate?
-------------------------------------------------------------------------------
(E)xpand/(C)ancel: E
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for grendel.no
http-01 challenge for blog.grendel.no
http-01 challenge for r.grendel.no
http-01 challenge for www.grendel.no
http-01 challenge for ptsd-boken.grendel.no
http-01 challenge for diaspora.grendel.no
Waiting for verification...
Cleaning up challenges
Failed authorization procedure. diaspora.grendel.no (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://diaspora.grendel.no/.well-known/acme-challenge/mCn0jlm7uDui78cQygeupysDif4tdPA35kgLK12n_4Q: "<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p"
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: diaspora.grendel.no
Type: unauthorized
Detail: Invalid response from
http://diaspora.grendel.no/.well-known/acme-challenge/mCn0jlm7uDui78cQygeupysDif4tdPA35kgLK12n_4Q:
"<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<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):
Apache/2.4.18 (Ubuntu)
The operating system my web server runs on is (include version):
Ubuntu 16.04.4 LTS
My hosting provider, if applicable, is:
www.webhuset.no
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):
So, seems Let’s Encrypt won’t reach the token during the validation process. Before try again, you must be sure the token can be reached from internet so create a test file in the right path for the document root used by diaspora.grendel.no and try to reach it.
mkdir -p /path/to/diaspora.grendel.com-DocumentRoot/.well-known/acme-challenge/
echo -n "this is a test for diaspora subdomain" > /path/to/diaspora.grendel.com-DocumentRoot/.well-known/acme-challenge/test
If you see the text “this is a test for diaspora subdomain” then you can try again but if you don’t, you need to review the redirections used for your diaspora subdomain.
Thanks, the redirect problem is solved now, but essentially the same thing happens:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache
-------------------------------------------------------------------------------
You have an existing certificate that contains a portion of the domains you
requested (ref: /etc/letsencrypt/renewal/grendel.no-0005.conf)
It contains these names: grendel.no, blog.grendel.no, ptsd-boken.grendel.no,
r.grendel.no, www.grendel.no
You requested these names for the new certificate: grendel.no, blog.grendel.no,
r.grendel.no, www.grendel.no, ptsd-boken.grendel.no, diaspora.grendel.no.
Do you want to expand and replace this existing certificate with the new
certificate?
-------------------------------------------------------------------------------
(E)xpand/(C)ancel: E
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for grendel.no
http-01 challenge for blog.grendel.no
http-01 challenge for r.grendel.no
http-01 challenge for www.grendel.no
http-01 challenge for ptsd-boken.grendel.no
http-01 challenge for diaspora.grendel.no
Waiting for verification...
Cleaning up challenges
Failed authorization procedure. diaspora.grendel.no (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://diaspora.grendel.no/.well-known/acme-challenge/d4NVsFC3PX51eQzJCQVQX-J5Z8WvUzIsgkUXNHmHH5g: "<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p"
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: diaspora.grendel.no
Type: unauthorized
Detail: Invalid response from
http://diaspora.grendel.no/.well-known/acme-challenge/d4NVsFC3PX51eQzJCQVQX-J5Z8WvUzIsgkUXNHmHH5g:
"<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<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.
Could you please issue the same certbot command but adding --debug parameter?. Once finished, upload the log file /var/log/letsencrypt/letsencrypt.log to some service like pastebin.com