Plesk CLI - Assign SSL

Discussion in 'Plesk Automation Suggestions and Feedback' started by JoshEdney-CH, Jun 8, 2016.

  1. JoshEdney-CH

    JoshEdney-CH Bit Poster


    I am using the plesk CLI on a PPA 11.5 setup. So far i have managed to get it to added to SSL to the relevant hosting account using the script below.

    /usr/local/psa/bin/./certificate --create "$domainName-$now!" -domain $domainName -key-file /home/SSL/$domainName/privkey.crt -cert-file /home/SSL/$domainName/cert.crt -cacert-file /home/SSL/$domainName/fullchain.crt
    I then want to assign the SSL so that it is active with having to go through the hosting settings within the plesk control panel. Im using the below, which i thought would work but it doesnt recognise the option of the domain name.

    /usr/local/psa/bin/./certificate --assign-cert "$domainName-$now!" -admin $domainName
    This is the error i get;

    Cannot recognize option 'domain.tld'

    Any help would be appreciated.


    Josh E

Share This Page