Here is some scripts for certbot on with python3.10 on nginx. Target system is Ubuntu18.04. We assume nginx and apt tool have been installed in the system already.
Use apt tool to get python3 if do not have python3 in system. May have to fix some link issue by using ‘ln’ command. Current latest python version is 3.10.8
sudo apt update sudo apt install python3 sudo apt install python3-pip
Install certbot and nginx plug-in
sudo apt-get install certbot certbot-nginx
follow page https://certbot.eff.org/instructions?ws=nginx&os=devuanbeowulf for new install system.
sudo certbot --nginx
sudo certbot certonly --nginx
Test the renew script.
sudo certbot renew --dry-run