My domain is: scribblersathome.com
I ran this command:
certbot certonly --webroot -w /var/www/scribblersathome/
It produced this output:
2023-01-16 21:30:37,548:DEBUG:certbot._internal.main:Arguments: ['--webroot', '-w', '/var/www/scribblersathome/', '--preconfigured-renewal']
2023-01-16 21:31:21,564:DEBUG:certbot._internal.display.obj:Notifying user: Requesting a certificate for scribblersathome.com and www.scribblersathome.com
b'{\n "identifiers": [\n {\n "type": "dns",\n "value": "scribblersathome.com"\n },\n {\n "type": "dns",\n "value": "www.scribblersathome.com"\n }\n ]\n}'
"value": "scribblersathome.com"
"value": "www.scribblersathome.com"
"value": "scribblersathome.com"
"value": "www.scribblersathome.com"
2023-01-16 21:31:21,957:INFO:certbot._internal.auth_handler:http-01 challenge for scribblersathome.com
2023-01-16 21:31:21,957:INFO:certbot._internal.auth_handler:http-01 challenge for www.scribblersathome.com
2023-01-16 21:31:21,957:INFO:certbot._internal.plugins.webroot:Using the webroot path /var/www/scribblersathome for all unmatched domains.
2023-01-16 21:31:21,957:DEBUG:certbot._internal.plugins.webroot:Creating root challenges validation dir at /var/www/scribblersathome/.well-known/acme-challenge
2023-01-16 21:31:21,957:DEBUG:certbot._internal.plugins.webroot:Creating root challenges validation dir at /var/www/scribblersathome/.well-known/acme-challenge
2023-01-16 21:31:21,958:DEBUG:certbot._internal.plugins.webroot:Attempting to save validation to /var/www/scribblersathome/.well-known/acme-challenge/rSBeoZjsO3JkCGP2IrGZ9T3POjQDml95Uzl2KjBjkuY
2023-01-16 21:31:21,959:DEBUG:certbot._internal.plugins.webroot:Attempting to save validation to /var/www/scribblersathome/.well-known/acme-challenge/7O5R9-Diq-hk-ghulOOBycDbqqUG5yywhc_68G1SynQ
"value": "scribblersathome.com"
"detail": "54.172.83.145: Invalid response from http://scribblersathome.com/.well-known/acme-challenge/rSBeoZjsO3JkCGP2IrGZ9T3POjQDml95Uzl2KjBjkuY: 404",
"url": "http://scribblersathome.com/.well-known/acme-challenge/rSBeoZjsO3JkCGP2IrGZ9T3POjQDml95Uzl2KjBjkuY",
"hostname": "scribblersathome.com",
"value": "www.scribblersathome.com"
"detail": "54.172.83.145: Invalid response from http://www.scribblersathome.com/.well-known/acme-challenge/7O5R9-Diq-hk-ghulOOBycDbqqUG5yywhc_68G1SynQ: 404",
"url": "http://www.scribblersathome.com/.well-known/acme-challenge/7O5R9-Diq-hk-ghulOOBycDbqqUG5yywhc_68G1SynQ",
"hostname": "www.scribblersathome.com",
2023-01-16 21:31:23,211:INFO:certbot._internal.auth_handler:Challenge failed for domain scribblersathome.com
2023-01-16 21:31:23,211:INFO:certbot._internal.auth_handler:Challenge failed for domain www.scribblersathome.com
2023-01-16 21:31:23,211:INFO:certbot._internal.auth_handler:http-01 challenge for scribblersathome.com
2023-01-16 21:31:23,211:INFO:certbot._internal.auth_handler:http-01 challenge for www.scribblersathome.com
Domain: scribblersathome.com
Detail: 54.172.83.145: Invalid response from http://scribblersathome.com/.well-known/acme-challenge/rSBeoZjsO3JkCGP2IrGZ9T3POjQDml95Uzl2KjBjkuY: 404
Domain: www.scribblersathome.com
Detail: 54.172.83.145: Invalid response from http://www.scribblersathome.com/.well-known/acme-challenge/7O5R9-Diq-hk-ghulOOBycDbqqUG5yywhc_68G1SynQ: 404
2023-01-16 21:31:23,212:DEBUG:certbot._internal.plugins.webroot:Removing /var/www/scribblersathome/.well-known/acme-challenge/rSBeoZjsO3JkCGP2IrGZ9T3POjQDml95Uzl2KjBjkuY
2023-01-16 21:31:23,213:DEBUG:certbot._internal.plugins.webroot:Removing /var/www/scribblersathome/.well-known/acme-challenge/7O5R9-Diq-hk-ghulOOBycDbqqUG5yywhc_68G1SynQ
My web server is (include version): OpenLiteSpeed 1.7.16
The operating system my web server runs on is (include version): Linux Ubuntu 20.04
My hosting provider, if applicable, is: AWS
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):
certbot 2.2.0
I don't know if I am misunderstanding the process, but this is a problem that I have some time ago everytime I need to get a new certificates using --webroot plugin. My webserver is in production and I prefer to don't stop it but unfortunately I always have to do it when adding a new certificate.
this command always failed when I needed to create a new cert and keep my web server running
certbot certonly --webroot -w /var/www/scribblersathome/
So, for now (I would like to dont do it any more), I have to stop the web server and run this command:
certbot certonly --standalone
Without problem I can create the new cert and once the cert is created, I run the next command to change the pluggin and renew the cert unnecessary, but I do this to dont have problems when is time for renewal and it run automatically and does not need to stop the web server.
certbot certonly --cert-name scribblersathome.com --webroot -w /var/www/scribblersathome/
Please let me know what I am doing wrong, I am sure that there is a better way. Thanks.