get free ssl certificate for linux / node server

علی ذوالفقار
1400/12/14 21:15:07 (209)
free ssl certificate for linux / node server
first install acme.sh
curl https://get.acme.sh | sh or
$ git clone https://github.com/acmesh-official/acme.sh.git $ cd ./acme.sh $ ./acme.sh --install check installation
acme.sh --version register an account for zerossl
acme.sh --register-account -m mymail@mydomain.com --server zerossl create ssl cert
acme.sh --issue -d mydomain.com -d www.mydomain.com -w /home/wwwroot/mydomain.com cert files stored in ~/.acme.sh/< domain-name > to renew after 3 month : acme.sh --renew -d azr.ir -d www.azr.ir --force a simple httpserver to test is http-server -p 81 --username john --password P@55W0rd -S -C ~/.acme.sh/mydomain.com/mydomain.com.cer -K ~/.acme.sh/mydomain.com/mydomain.com.key /home/wwwroot/mydomain.com
Back