Situtation I:
If the nginx is ready and works well, do it as below:
Step 1: stop the nginx temporary
systemctl stop nginx
Step 2:
acme.sh --issue -d example.com --standalone
Step 3: install the certificate
acme.sh --installcert -d example.com --key-file /root/private.key --fullchain-file /root/cert.crt
Step 4: start the nginx service again
systemctl start nginx
systemctl enable nginx
Ok, it’s done.