Configure SSL
Run the below command to configure the SSL,
sudo certbot --nginxAfter running the above command, it will prompt for the no of domains and Email address. Provide the inputs to configure the SSL and Enable the HTTPS.
The Certbot packages on your system come with a cron job or systemd timer that will renew your certificates automatically before they expire. You will not need to run Certbot again, unless you change your configuration. You can test automatic renewal for your certificates by running this command:
sudo certbot renew --dry-runLast updated