Plesk

How to set up Plesk to use one certificate for all domains?

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

  1. Log into Plesk

  2. Navigate to Tools & Settings > SSL/TLS Certificates;

  3. Click Add:

  4. 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:

  1. Select the newly uploaded certificate and click Make Default button:

Via CLI

  1. Connect to the server via SSH

  2. 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>

  3. 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.