TLDR: I have an AWS Lightsail LAMP with PHP 7 server No Wordpress.. pretty much all defaults base image.. I want to enable the auto-renew process for my SSL cert or replace it with a new one. Initial setup was using aws light sail instructions and certbot https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-using-lets-encrypt-certificates-with-lamp#request-a-lets-encrypt-certificate-lamp. I don't care how its done going forward, I just want it auto-renewed no intervention. I don't know how to undo the damage done already to get to where I can use some other solution or fix the current one.
Since this is all foreign to me these are the questions I am looking to have answered directly since existing articles I have found are all useless to a noob and don't consider you already having a valid SSL certificate.
- By manually requesting/creating this cert, does that mean its impossible now to set it to auto-renew?
- Can certbot be configured with my credentials somehow to auto-renew?
- If you are going to suggest using some other tool.. before giving me a vague answer like.. you should use https://docs.bitnami.com/aws/apps/wordpress/administration/generate-configure-certificate-letsencrypt/ or [Generate and Install a Let's Encrypt SSL Certificate for a Bitnami Application](https://Lego Client) Please tell me how I get it back to square one first.
- Note: This site is not critical, if I can take it down and revoke or something and then use some other solution that is what I am looking for..
My domain is:
www.techonlinetools.com
I ran this command:
SSL Request Successfully implemented using these steps:
Steps: [Tutorial: Using Let’s Encrypt SSL certificates with your LAMP instance in Amazon Lightsail | Lightsail Documentation](https://amazon lightsail useless steps)
my commands:
DOMAIN=techonlinetools.com
WILDCARD=*.$DOMAIN
echo $DOMAIN && echo $WILDCARD
sudo certbot -d $DOMAIN -d $WILDCARD --manual --preferred-challenges dns certonly
it worked, as in I got a SSL working cert, redirected my port 80 to 443 all was fine and I don't have the output from the initial setup. The problem is, from their instructions they say..
now just do this again in 90 days
which is not ok!
So After I have a working SSL Cert, I was doublechecking the auto-renew steps and it does not work
bitnami@ipxxxxx:~$ sudo certbot renew --dry-run
Dry Run Output
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Processing /etc/letsencrypt/renewal/techonlinetools.com.conf
Cert not due for renewal, but simulating renewal for dry run
Could not choose appropriate plugin: The manual plugin is not working; there may be proble
ms with your existing configuration.
The error was: PluginError('An authentication script must be provided with --manual-auth-h
ook when using the manual plugin non-interactively.')
Attempting to renew cert (techonlinetools.com) from /etc/letsencrypt/renewal/techonlinetoo
ls.com.conf produced an unexpected error: The manual plugin is not working; there may be p
roblems with your existing configuration.
The error was: PluginError('An authentication script must be provided with --manual-auth-h
ook when using the manual plugin non-interactively.'). Skipping.
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/techonlinetools.com/fullchain.pem (failure)
** DRY RUN: simulating 'certbot renew' close to cert expiry
** (The test certificates below have not been saved.)
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/techonlinetools.com/fullchain.pem (failure)
** DRY RUN: simulating 'certbot renew' close to cert expiry
** (The test certificates above have not been saved.)
1 renew failure(s), 0 parse failure(s)
My web server is (include version):
bitnami@ip-xxxxxx:~$ sudo httpd -v
Server version: Apache/2.4.46 (Unix)
Server built: Dec 21 2020 12:49:53
The operating system my web server runs on is (include version):
bitnami@ip-xxxxxx:~$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="Debian -- User Support"
BUG_REPORT_URL="https://bugs.debian.org/"
My hosting provider, if applicable, is:
AWS LightSail LAMP Server with PHP 7
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):
bitnami@ip-xxxxx:~$ certbot --version
certbot 0.31.0