PLESK COMMAND LINE INTERFACE

Section 3.2.8 Managing SSL Certificates

3.2.8.1 Purpose

The SSL certificates pool for Plesk domains can be managed with the help of the certificate.sh utility.

3.2.8.2 Usage

Usage: certificate.sh command <cert_name> [-domain <name>|-admin] [options]

Available commands and options:

Command Parameter Action
--create or -c <cert_name> creates a certificate
--update or -u <cert_name> updates a certificate
--remove or -r <cert_name> removes a certificate
--assign-cert or -ac <cert_name> assigns the SSL certificate to be used with the specified IP address
--list or -l   gets a list of repository certificates
--help or -h   displays help on the utility usage
Option Parameter Note
-domain <domain_name> a domain repository
-admin   a domain repository
-new-name <cert_name> a new name for this certificate
-key-file <path> a private key file (required for creation)
-cert-file

<path>

a certificate file
-cacert-file <path> a CA certificate file
-ip <IP> assigns a certificate to an IP (only for the "--assign-cert" command)

3.2.8.3 Examples

./certificate.sh --create "cert1"

to top