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.
01 · Install a certificate
Your certificate comes as text files. Each one goes in its own box:
One file per box. Open each file in a text editor and copy all of it.
- 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.
- Click Setup SSL. The SSL Certificate Setup dialog opens.
- In Certificate (PEM format), paste the contents of the
.crtfile. Paste all of it, from the line-----BEGIN CERTIFICATE-----to the line-----END CERTIFICATE-----, both included. - In Private Key (PEM format), paste the contents of the
.keyfile, with itsBEGINandENDlines too. - In Certificate Chain (optional), paste the intermediate certificates (the CA bundle), if your certificate came with them.
- Click Install Certificate.
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.comandwww.example.com: add the extra names as Server Aliases in Edit Settings, and use a certificate that lists all of them.
03 · View Certificate
Valid, Expiring Soon (less than 14 days left) or Expired.
Days until the certificate expires.
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.
