Renewing letsencrypt certificates on AWS Lightsail

0

Hi

Look in for help to renew ssl certificates provided by letsencrypt.

I installed the certificate using these instructions
https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-using-lets-encrypt-certificates-with-wordpress

There is nothing in there about renewing apart from the screenshot once the certificate is installed.

I have tried running certbot renew and get this error

Attempting to renew cert (xxxxx.co.uk) from /etc/l
etsencrypt/renewal/xxxxx.co.uk.conf produced an un
expected error: The manual plugin is not working; there may
be problems with your existing configuration.
The error was: PluginError('An authentication script must be
provided with --manual-auth-hook when using the manual plug
in non-interactively.',). Skipping.
All renewal attempts failed.

Looking to be pointed in the right direction.

Reading the standard Bitnami install and renewal docs

https://docs.bitnami.com/aws/how-to/generate-install-lets-encrypt-ssl/

it talks about using lego to handle the renewal but enabling lego this was not part of the initial install instructions.

Thanks

asked 5 years ago1142 views
3 Answers
0

The answer's in the error message. Essentially, you can't run certbot non-interactively to renew your certificates if you've installed them interactively using the --manual parameter. To renew them, you'll have to run the original command again and go through the steps to verify domain ownership (certbot can't configure your DNS).

RobMM
answered 5 years ago
0

Thanks for the answer, I was able to update the certificates. It there away to automate this ?

answered 5 years ago
0

Hi There,
You can set up a cron job for the same.
https://serverfault.com/questions/790772/cron-job-for-lets-encrypt-renewal

Hope this helps.

AWS
SUPPORT ENGINEER
Satyam
answered 5 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions