$ sudo apt install -y certbot # stop nginx service, this is a must $ sudo systemctl stop nginx # generate an ssl certificate $ sudo certbot certonly -d shop.example.com -d dashboard.example.com