Skip to main content

SSL Certificate

Let's Encrypt

# Install certbot
sudo apt update
sudo apt install certbot python3-certbot-nginx

# Generate certificate
sudo certbot --nginx -d weiyuai.cn -d *.weiyuai.cn

# Automatic renewal
sudo certbot renew --dry-run

References