My domain is: rafflegiftcards.com
I ran this command:
sudo certbot renew --dry-run
sudo certbot certonly --webroot
sudo /opt/bitnami/ctlscript.sh start
ERROR1
It produced this output: Attempting to renew cert (rafflegiftcards.com) from /etc/letsencrypt/renewal/rafflegiftcards.com.conf produced an unexpected error: Failed authorization procedure. rafflegiftcards.com (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://rafflegiftcards.com/.well-known/acme-challenge/1aPGhU-DAsvMNyTYTcItrkvQFmufF-Dgthza6y5rbkk: "
Not Found
<p". Skipping. All renewal attempts failed. The following certs could not be renewed: /etc/letsencrypt/live/rafflegiftcards.com/fullchain.pem (failure)ERROR2
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
Starting new HTTPS connection (1): acme-v01.api.letsencrypt.org
Please enter in your domain name(s) (comma and/or space separated) (Enter ‘c’
to cancel): www.rafflegiftcards.com
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for www.rafflegiftcards.com
Input the webroot for www.rafflegiftcards.com: (Enter ‘c’ to cancel): /opt/bitnami/apps/wordpress/htdocs/
Waiting for verification…
Cleaning up challenges
Failed authorization procedure. www.rafflegiftcards.com (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://www.rafflegiftcards.com/.well-known/acme-challenge/H_Mw3-CEdLr62aVXba5X2b_hXN213nEavzvWdllXHPM: "
Not Found
<p"IMPORTANT NOTES:
-
The following errors were reported by the server:
Domain: www.rafflegiftcards.com
404 Not Found
Type: unauthorized
Detail: Invalid response from
http://www.rafflegiftcards.com/.well-known/acme-challenge/H_Mw3-CEdLr62aVXba5X2b_hXN213nEavzvWdllXHPM:
"Not Found
<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.
ERROR3
bitnami@ip-172-31-82-23:/opt/bitnami/apps/wordpress/htdocs$ sudo /opt/bitnami/ctlscript.sh start
/opt/bitnami/mysql/scripts/ctl.sh : mysql (pid 1827) already running
/opt/bitnami/php/scripts/ctl.sh : php-fpm (pid 1869) already running
AH00526: Syntax error on line 46 of /opt/bitnami/apache2/conf/bitnami/bitnami.conf:
SSLCertificateFile: file ‘/opt/bitnami/apache2/conf/server.crt’ does not exist or is empty
apache config test fails, aborting
My web server is (include version): apache2
The operating system my web server runs on is (include version): ubuntu 16.04.4
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