haha well I'm getting closer, but still not quite. Staging version works fine:
/usr/local/letsencrypt/certbot-auto certonly --staging --webroot -w /home/admin/web/school-clip-art.com/public_html -d school-clip-art.com -d www.school-clip-art.com
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Cert not yet due for renewal
You have an existing certificate that has exactly the same domains or certificate name you requested and isn't close to expiry.
(ref: /etc/letsencrypt/renewal/school-clip-art.com.conf)
What would you like to do?
1: Keep the existing certificate for now
2: Renew & replace the cert (limit ~5 per 7 days)Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 2
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for school-clip-art.com
http-01 challenge for www.school-clip-art.com
Using the webroot path /home/admin/web/school-clip-art.com/public_html for all unmatched domains.
Waiting for verification...
Cleaning up challenges
Unable to clean up challenge directory /home/admin/web/school-clip-art.com/public_html/.well-known/acme-challenge
Generating key (2048 bits): /etc/letsencrypt/keys/0002_key-certbot.pem
Creating CSR: /etc/letsencrypt/csr/0002_csr-certbot.pem
IMPORTANT NOTES:
- Congratulations! Your certificate and chain have been saved at
/etc/letsencrypt/live/school-clip-art.com/fullchain.pem. Your cert
will expire on 2017-07-27. To obtain a new or tweaked version of
this certificate in the future, simply run certbot-auto again. To
non-interactively renew all of your certificates, run
"certbot-auto renew"
...but not the "live" one
/usr/local/letsencrypt/certbot-auto certonly --webroot -w /home/admin/web/school-clip-art.com/public_html -d school-clip-art.com -d www.school-clip-art.com
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Cert not yet due for renewal
You have an existing certificate that has exactly the same domains or certificate name you requested and isn't close to expiry.
(ref: /etc/letsencrypt/renewal/school-clip-art.com.conf)
What would you like to do?
1: Keep the existing certificate for now
2: Renew & replace the cert (limit ~5 per 7 days)Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 2
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for school-clip-art.com
http-01 challenge for www.school-clip-art.com
Using the webroot path /home/admin/web/school-clip-art.com/public_html for all unmatched domains.
Waiting for verification...
Cleaning up challenges
Unable to clean up challenge directory /home/admin/web/school-clip-art.com/public_html/.well-known/acme-challenge
Failed authorization procedure. www.school-clip-art.com (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: The key authorization file from the server did not match this challenge [z01v1WRI0wuyPchNLcChostfaIowM7uZSKtt5Lz8N0o.QOHPDOM39nXOn7vMCwxuoSYRMc3icfYIIOtd8JI45Q8] != [z01v1WRI0wuyPchNLcChostfaIowM7uZSKtt5Lz8N0o.jovWtVw8hQo48B0oVNH2HtMnU6dasUd0_8jh4cxgALE], school-clip-art.com (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: The key authorization file from the server did not match this challenge [I5iSChtr-ZeUNdr9UBorsvCn5hJaLHzY1mIW1-GDky4.QOHPDOM39nXOn7vMCwxuoSYRMc3icfYIIOtd8JI45Q8] != [I5iSChtr-ZeUNdr9UBorsvCn5hJaLHzY1mIW1-GDky4.jovWtVw8hQo48B0oVNH2HtMnU6dasUd0_8jh4cxgALE]
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: www.school-clip-art.com
Type: unauthorized
Detail: The key authorization file from the server did not match
this challenge
[z01v1WRI0wuyPchNLcChostfaIowM7uZSKtt5Lz8N0o.QOHPDOM39nXOn7vMCwxuoSYRMc3icfYIIOtd8JI45Q8]
!=
[z01v1WRI0wuyPchNLcChostfaIowM7uZSKtt5Lz8N0o.jovWtVw8hQo48B0oVNH2HtMnU6dasUd0_8jh4cxgALE]
Domain: school-clip-art.com
Type: unauthorized
Detail: The key authorization file from the server did not match
this challenge
[I5iSChtr-ZeUNdr9UBorsvCn5hJaLHzY1mIW1-GDky4.QOHPDOM39nXOn7vMCwxuoSYRMc3icfYIIOtd8JI45Q8]
!=
[I5iSChtr-ZeUNdr9UBorsvCn5hJaLHzY1mIW1-GDky4.jovWtVw8hQo48B0oVNH2HtMnU6dasUd0_8jh4cxgALE]
To fix these errors, please make sure that your domain name was
entered correctly and the DNS A record(s) for that domain
contain(s) the right IP address.
Looking at the log files for the staging, and "live" one, I did happen to notice:
Staging: (worked OK);
HTTP 201
Server: nginx
Content-Type: application/json
Content-Length: 1519
Boulder-Request-Id: PIoEDqzgNw0hAqbx51TSB2yJf58X8xN1mnCU5EpyN2s
Boulder-Requester: 1992360
Link: https://acme-staging.api.letsencrypt.org/acme/new-cert;rel="next"
Location: https://acme-staging.api.letsencrypt.org/acme/authz/yldyfBkWVgZ4X-OyWHd41ElNy4RPuxjJm7G8uKowMQA
Replay-Nonce: T59R7TpHezUe3UhF2tkzK_PntTFMJTyEtpip62eX1pg
X-Frame-Options: DENY
Strict-Transport-Security: max-age=604800
Expires: Fri, 28 Apr 2017 04:40:40 GMT
Live (didn't work);
HTTP 201
Server: nginx
Content-Type: application/json
Content-Length: 1007
Boulder-Request-Id: Ilo1Vq-hUqyq0FnaHFJ507NFNO9BMczdb-UsUlxKKzA
Boulder-Requester: 13370135
Link: <https://acme-v01.api.letsencrypt.org/acme/new-cert>;rel="next"
Location: https://acme-v01.api.letsencrypt.org/acme/authz/f2LDQVqzqnpdu0kUqVvKxazU8FBgZ3vSs34GM1SKBV0
Replay-Nonce: XXRz_v0SwEJDN0dMWCZkm5mEJgtnwMOifXP9xmPm-fA
X-Frame-Options: DENY
Strict-Transport-Security: max-age=604800
Notice how the content length is different. Is that normal? Digging into the guts here really isn't my expertise , so I'm hoping someone can help me figure it out
@ontheslab - what was the nginx config issue you had? I'm on nginx as well. I have this in mynginx.conf file for each of the domains:
location / {
if ($request_uri ~ "^/\.well-known/acme-challenge/(.*)$") {
break;
}
rewrite ^(.*) https://free-clip-art.com$1 permanent;
}
Cheers
Andy