Certificate Manager quickstart
Upload your first certificate to Certificate Manager, bind it to a Workload, and confirm the platform marks it active.
This guide instructs you through binding your first certificate of your own to a Workload with Certificate Manager.
- Upload a server certificate and its private key to Certificate Manager.
- Bind the certificate to your Workload.
- Confirm that Certificate Manager reports the certificate as active.
Three elements take part, and each one links to the next:
- The certificate is a server certificate you upload to Certificate Manager with its private key. The API stores it with
typeset toedge_certificate. Its status staysinactiveuntil you bind it to a Workload. - The Workload holds the certificate in its
tls.certificatefield and presents it for your domains. While that field isnull, the Workload presents the Azion SAN certificate instead. That is Azion’s own certificate, and it lists the hostnames it covers as Subject Alternative Names (SANs). - The domains of the Workload are the hostnames the certificate must cover. The API does not compare the certificate’s names with the domains, so it accepts a certificate that does not cover them. The client’s check of the names then fails.
An uploaded certificate protects no traffic until you bind it to a Workload. The Azion SAN certificate covers only the workload domain and the azion.app hostname. A Workload keeps presenting it for those two hostnames after you bind your own certificate. This guide changes only the tls settings of the Workload and keeps its domains, ports, and deployment as they are.
To have Azion request a certificate from Let’s Encrypt and renew it for you instead, refer to Request a Let’s Encrypt certificate. In Azion Console, the Workload’s Digital Certificate field also offers the Let’s Encrypt presets, described in Certificates.
Prerequisites
Console
- An Azion account. To create one, refer to Create an account.
- A Workload that lists your domain in its domains. To add a domain, refer to Add a custom domain to a workload.
- A certificate in PEM format that covers your domain, with its private key, also in PEM and without a passphrase. RSA 2048 keys and P-256 keys are accepted.
- Access to Azion Console. To sign in, refer to How to access Azion Console.
Upload the certificate
A server certificate holds the certificate and its private key. Once saved, the private key cannot be read back from Azion Console or the API. You can upload the certificate alone or with its intermediate certificates.
Console
To upload the certificate in Azion Console:
Access Azion Console > Certificate Manager.
Select Create Digital Certificate. The Create Digital Certificate page opens.
In Name, enter a name for the certificate, such as my-certificate.
In Certificate, paste the PEM certificate, including its -----BEGIN CERTIFICATE----- and -----END CERTIFICATE----- lines. The help text reads “Intermediate certificates are accepted.”
In Private Key, paste the PEM private key, including its -----BEGIN and -----END lines.
The certificate appears in the Certificate Manager list as a TLS Certificate. It stays inactive until you bind it to a Workload.
Bind the certificate to your Workload
A Workload presents a server certificate for your domains only once you bind it in the Workload’s tls.certificate field. Before you bind it, check that the certificate covers the domains of the Workload. The API accepts a certificate that does not cover them, and the client’s check of the names then fails.
Console
To bind the certificate in Azion Console:
Access Azion Console > Workloads.
Select your Workload. The Edit Workload page opens.
In Protocol Settings, turn on HTTPS support if it is off. Digital Certificate appears only while it is on.
In Digital Certificate, select your certificate in the My certificates group.
Azion Console shows the message “Your workload has been updated”. Your certificate is bound to the Workload in tls.certificate.
Confirm the certificate is active
Certificate Manager reports a certificate as active once you bind it to a Workload. The status shows that your Workload uses the certificate.
Console
To confirm the status in Azion Console:
Access Azion Console > Certificate Manager.
Find your certificate in the list, and confirm that its status is active. A pending certificate shows a warning icon, and a failed certificate shows an error icon with the reason.
Your certificate is active, and your Workload uses it.
Binding a certificate is a change to the Workload. The change takes several minutes to reach all of Azion’s distributed infrastructure, with no guaranteed duration. Meanwhile, requests can meet the old configuration or the new one. For more information, refer to Propagation.