ssl_cert
How to Renew the SSL certs
- SSH into the ec2 instance
$ ssh -i main.cer ec2-user@ec2-18-216-84-227.us-east-2.compute.amazonaws.com
- turn off httpd and nginx with these commands:
$ service httpd stop
$ service nginx stop
- Run certbot renew, make sure httpd and nginx or turned off.
$ certbot renew --force-renewal
^ this command simply checks to see that the certificates are renewed
To renew a certificate, you have to run this command:
$ certbot certonly --standalone --preferred-challenges http
$ certbot certonly --standalone --preferred-challenges dns
$ certbot certonly --standalone --preferred-challenges tls-alpn-01
These commands change a lot as the letsencrypt people are always chaning the challenges.
if everything works out, then turn back nginx and httpd:
$ service httpd start
$ service nginx start