- Fastly Status
TLS key and certificate replacement
Last updated June 05, 2019
IMPORTANT: This feature is part of a limited availability release. For more information, see our product and feature lifecycle descriptions.
To serve secure traffic from Fastly using HTTPS, a website or application needs to provide clients with a valid TLS certificate signed by a trusted certificate authority. Fastly offers a number of ways to deploy TLS certificates across our edge network.
This guide describes how to replace the keys and certificates used to terminate TLS for domains that have already been configured within the Fastly system. If you generate your own keys and certificates and transfer them to Fastly to install, contact firstname.lastname@example.org to see if you qualify for this interface.
To upload new private keys and replace TLS certificates using the web interface, you will need:
- a Fastly user account assigned the role of superuser, or assigned a user role with added TLS management permission
- a valid X.509 TLS certificate from a trusted Certificate Authority (CA)
- a matching 2048-bit RSA private key
- The web interface does not accept 4096-bit keys. If you have such a key you must use Fastly's certificate uploading tool to upload your key.
- When replacing a certificate, the SAN entries of the new certificate must be an exact match to the existing certificate.
Accessing the HTTPS and network settings page
To access the HTTPS and network settings page, log in to your Fastly account, click the Configure link, and then click the HTTPS and network tab.
This brings you to the TLS certificates page, which lets you view your certificates and private keys, and allows you to upload new keys and replace your existing certificates.
Replacing a key and certificate
To upload the new key and replace the certificate used to terminate TLS for a domain, first you must generate a new key and certificate with your preferred Certificate Authority. When regenerating a new certificate, you must specify the exact same list of SAN entries as the existing certificate. The TLS certificates page will provide you with information on all of your current certificates and the SAN entries of each of those certificates. If you need to modify the SAN entries for a particular certificate, or if you need to add a brand new certificate for a new set of domains, contact email@example.com for assistance.
In order to replace a TLS certificate you will first need to upload the matching private key that was used to generate the new certificate.
On the TLS certificates page there is a drag-and-drop area that you can use to drop your private key file. Alternatively you can browse your file system for the private key. This upload tool currently only accepts 2048-bit RSA keys. If you require longer key lengths, contact firstname.lastname@example.org. Valid private keys will automatically upload to Fastly upon being dropped on the page, or after being selected from the file picker.
Upon successfully uploading a private key, the TLS certificates page will display the key with the label, Orphan key. This refers to a private key that has no matching TLS certificate. If you have multiple private keys, you will be able to identify each by a unique upload date time. Private keys can only be deleted if they are in the orphan state.
Once you have uploaded the new private key, you will be able to replace the TLS certificate. Find the certificate in the list of certificates. In the example below we show a certificate that is nearing expiration. You will see the Replace icon at the top-right corner. Clicking this icon brings up a file-picker that can be used to select the new certificate. The certificate you select should be PEM-formatted and the SAN entries of this certificate must be an exact match to the current certificate. You can select either a file containing the full certificate chain or a file containing just the leaf certificate. The intermediate certificates will be automatically backfilled when just the leaf certificate is uploaded.
After selecting the new certificate, a success message will be displayed and the certificate information will be updated. When a certificate is replaced, it will be automatically deployed and all domains actively serving TLS traffic on the old certificate will be automatically transitioned to the updated certificate within a matter of minutes.
NOTE: If the new certificate is not being used to serve TLS traffic within 1 hour, contact email@example.com for assistance.
There may be situations where Fastly identifies certificates that should be replaced. These certificates will be clearly marked.
Back to Top