How to obtain SSL from Let’s Encrypt

Get your server up to date

apt update && apt upgrade -y

Install curl and socat

apt install curl socat -y

Install ACME Script

curl https://get.acme.sh | sh

Get FREE SSL Certificate

~/.acme.sh/acme.sh --set-default-ca --server letsencrypt
~/.acme.sh/acme.sh --register-account -m xxxx@xxxx.com
~/.acme.sh/acme.sh --issue -d host.mydomain.com --standalone
~/.acme.sh/acme.sh --installcert -d host.mydomain.com --key-file /root/private.key --fullchain-file /root/cert.crt
sudo apt install certbot python3-certbot-nginx
sudo certbot --nginx -d vpn.yourdomain.com
sudo certbot renew --dry-run

Leave a Reply

Your email address will not be published. Required fields are marked *