November 19, 2019

Letsencrypt with Zonomi

Setup acme.sh

  • git clone https://github.com/Neilpang/acme.sh.git
  • cd ./acme.sh/
  • ./acme.sh --install
  • export ZM_Key="zonomi API Key"
  • acme.sh --issue -d wjw.nz -d *.wjw.nz -d wjw.co.nz -d *.wjw.co.nz -d wjw.co.uk -d *.wjw.co.uk -d wjw.uk -d *.wjw.uk -d walkerfamily.kiwi -d *.walkerfamily.kiwi -d *.nzags.com --dns dns_zonomi 
for mailinabox add "--config-home /home/user-data/ssl" to acme command line and run the following:

    cd /home/user-data/ssl
        rm ssl_certificate.pem 
        ln -s wjw.nz/wjw.nz.cer ssl_certificate.pem
        rm ssl_private_key.pem 
        ln -s wjw.nz/wjw.nz.key ssl_private_key.pem

To fix cert error with curl:
  • wget http://curl.haxx.se/ca/cacert.pem
  • mv cacert.pem /etc/ssl/certs/
  • nano /etc/php/7.0/cli/php.ini 
  • add "curl.cainfo ="/etc/ssl/certs/cacert.pem" under "[curl]"
For mixed DNS hosting

acme.sh --issue --force -d walkerfamily.kiwi --dns dns_gd -d *.walkerfamily.kiwi --dns dns_gd -d wjw.nz -d *.wjw.nz -d wjw.co.nz -d *.wjw.co.nz -d wjw.co.uk -d *.wjw.co.uk -d wjw.uk -d *.wjw.uk -d *.nzags.com --dns dns_zonomi 

No comments: