The certificate
utility is used to manage SSL/TLS certificates
through CLI. By using this utility, you can perform the following tasks:
- creating and removing SSL/TLS certificates
- assigning certificates to IP addresses
- editing certain certificate parameters
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 For information on the options required by the command, refer |
To create the SSL/TLS certificate named Site Certificate in |