https://github.com/acmesh-official/acme.sh
basher install
A pure Unix shell script implementing ACME (LetsEncrypt) client protocol
Example 1: Single domain.
acme.sh --issue -d example.com -w /home/wwwroot/example.com
# or:
acme.sh --issue -d example.com -w /home/username/public_html
# or:
acme.sh --issue -d example.com -w /var/www/html