Question
How to set up Plesk to use one certificate for all domains?
How to change default certificate in Plesk?
Answer
All the domains that have SSL support and do not have custom certificates assigned, will use the default one.
Create a certificate and make it default server-wide.
Via Plesk UI
-
Navigate to Tools & Settings > SSL/TLS Certificates;
-
Click Add:
-
Upload the certificate:
-
Via files. Choose
*.key
and*.crt
files.*-ca.crt
part is optional. Click Upload certificate: -
As text. Fill in the fields Private key and Certificate. The field CA Certificate is optional. Click Upload certificate:
- Select the newly uploaded certificate and click Make Default button:
Via CLI
-
Connect to the server via SSH
-
Create a certificate. Specify the certificate name and all certificate files in the command. Parameter
-default
will mark it as default server-wide:# plesk bin certificate -c <certificate_name> -admin -default -key-file <file.key> -cert-file <file.crt> -cacert-file <file-ca.crt>
-
If the certificate is already uploaded, run the following command:
# plesk bin certificate -u <certificate_name> -default -admin
Note: Make sure that the new certificate is assigned to domains IP address at Plesk > Tools & Settings > IP addresses > 203.0.113.2.