Installer le package python-certbot-nginx ou python3-certbot-nginx suivant la version de votre python

créer un certificat ssl pour nginx avec certbot :

certbot --nginx -d <URL>, <URL1>, <URLn>

Renouveler un certificat avec certbot :

certbot renew