sudo apt-get update
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:certbot/certbot
sudo apt-get update
sudo apt-get install python-certbot-apache
sudo certbot --apache
sudo service apache2 restart
希望这个解决方法能帮助您成功获取AWS LightSail的SSL证书。