Plesk

certificate: SSL/TLS Certificates

The certificate utility is used to manage SSL/TLS certificates
through CLI. By using this utility, you can perform the following tasks:

Usage

certificate <command> <certificate name> [<domain name>] [
<option_1> [<param>]
[<option_2> [<param>]]
... [<option_N> [<param>]]
]

Example

The following command creates the SSL/TLS certificate named Site
Certificate
in domain’s certificate repository for domain
example.com by using private key file
/usr/local/keys/keyfile.key, corresponding certificate file
/usr/local/cert/certfile.cert, CA certificate file
/usr/local/cert/cacert.cert, and associates the corresponding
certificate signing request file usr/local/requests/csreq.csr with
the certificate in Plesk:

plesk bin certificate -c "Site Certificate" -domain example.com -key-file /usr/local/keyfile.key -cert-file /usr/local/cert/cert.cert -cacert-file /usr/local/cert/cacert.cert -csr-file /usr/local/requests/csreq

Commands

Command Parameter Description Example
--create or -c <certificate_name>

Creates an SSL/TLS certificate in a specified certificate
repository (administrator’s or domain’s repository) by using a
private key file and a corresponding certificate file.

For information on the options required by the command, refer
to the Note below the table.

To create the SSL/TLS certificate named Site Certificate in
domain’s certificate repository for the domain example.com by
using private…