SSL and HTTPS with Your Own Certificate

HTTPS on every website, with your own certificate

Put your certificate on a site

Every project serves HTTPS with your own certificate. Paste it in Setup SSL and the site uses it at once. A certificate from any trusted CA works, and so does a CDN origin certificate, for example a Cloudflare Origin Certificate.

Where: Projects › click a project › SSL Certificate › Setup SSL

01 · Install a certificate

Your certificate comes as text files. Each one goes in its own box:

Which file goes in which box of the SSL Certificate Setup dialog: the .crt file goes in Certificate (PEM format), the .key file goes in Private Key (PEM format), and the CA bundle goes in Certificate Chain (optional). Your .crt file Certificate (PEM format) Your .key file Private Key (PEM format) CA bundle (chain) Certificate Chain (optional)
Which file goes in which box of the SSL Certificate Setup dialog: the .crt file goes in Certificate (PEM format), the .key file goes in Private Key (PEM format), and the CA bundle goes in Certificate Chain (optional). Your .crt file into Certificate (PEM format) Your .key file into Private Key (PEM format) CA bundle (chain) into Certificate Chain (optional)

One file per box. Open each file in a text editor and copy all of it.

  1. Check that the certificate was issued for the project's Hostname. If the site is still on a temporary name, put it on your domain first.
  2. Click Setup SSL. The SSL Certificate Setup dialog opens.
  3. In Certificate (PEM format), paste the contents of the .crt file. Paste all of it, from the line -----BEGIN CERTIFICATE----- to the line -----END CERTIFICATE-----, both included.
  4. In Private Key (PEM format), paste the contents of the .key file, with its BEGIN and END lines too.
  5. In Certificate Chain (optional), paste the intermediate certificates (the CA bundle), if your certificate came with them.
  6. Click Install Certificate.
The SSL Certificate Setup dialog, with arrows on the Setup SSL button, the Certificate, Private Key and Certificate Chain boxes and the Install Certificate button

Setup SSL on the project page opens this dialog: three boxes, then Install Certificate.

Opensolr checks that the key belongs to the certificate, points the project's existing virtual host at the new files and reloads Apache. Nothing else in the virtual host changes.

02 · Good to know

  • Use a certificate with an RSA private key. The key check refuses other key types.
  • The project needs a virtual host first. Without one, the certificate files are saved and you are asked to click Create VHost, then install again.
  • Until you install yours, a new project uses a temporary self-signed certificate. View Certificate tells you so.
  • One certificate for several names, such as example.com and www.example.com: add the extra names as Server Aliases in Edit Settings, and use a certificate that lists all of them.

03 · View Certificate

Status

Valid, Expiring Soon (less than 14 days left) or Expired.

Days Remaining

Days until the certificate expires.

Hostname, Issuer, Expires At

Which site, who issued the certificate, and its end date.

The project's info panel also shows its SSL Status.

04 · Renewal

Your certificate does not renew by itself. Before Expires At, install the new one with Setup SSL, the same way.

You can also manage certificates and Apache yourself from the Terminal tab or over SSH.

Projects tab