Upload a digital certificate
Upload a server certificate, or create a CSR for your certificate authority to sign, and bind the certificate to a domain.
You can add a certificate that a certificate authority (CA) issued for your domain to Certificate Manager and select it on a domain, from Azion Console, the Azion CLI, or the API. For a certificate that Azion requests from Let’s Encrypt and renews, refer to Request a Let’s Encrypt certificate. For the Trusted CA certificate that checks client certificates, refer to Configure mTLS on a domain.
A server certificate covers the hostnames a domain serves over HTTPS. You get one in either of two ways: you upload a certificate with its private key, or Certificate Manager creates a certificate signing request (CSR) and keeps the private key while your CA signs the certificate. Either way, you then select the server certificate on each domain that serves those hostnames.
Prerequisites
Console
- A domain that lists your hostnames in CNAME. For the field, refer to CNAME.
- To upload a certificate: the certificate in PEM format and its private key, with no passphrase. RSA 2048 keys and P-256 keys are accepted.
- To create a CSR: a domain your account has permission to use.
- Access to Azion Console. For more information, refer to How to access Azion Console.
Upload a server certificate
Certificate Manager stores the certificate with its private key, and it never returns the private key afterward. Intermediate certificates are accepted with the certificate.
Console
To upload the certificate in Azion Console:
Access Azion Console > Certificate Manager.
Select Server Certificate.
In Name, enter a name, such as my-certificate.
In Certificate, paste the certificate, including its -----BEGIN CERTIFICATE----- and -----END CERTIFICATE----- lines.
In Private Key, paste the private key, including its -----BEGIN and -----END lines.
Select Create.
The certificate appears in Certificate Manager as a TLS Certificate.
Send the private key that matches the certificate, in PEM format and without a passphrase.
Create a certificate signing request
A CSR lets your own CA sign the certificate while Certificate Manager generates and keeps the private key. Name the hostnames the domain lists in CNAME.
Console
The presets of the Create Digital Certificate page do not include a CSR. Create the CSR with the Azion CLI first.
To copy the request in Azion Console:
Access Azion Console > Certificate Manager.
Select the entry that the CSR created. Its Edit Digital Certificate page opens.
In Certificate Signing Request (CSR), select Copy.
Azion Console shows “Successfully copied!”, and the request is ready to submit to your CA.
For the meaning of each CSR field, refer to Certificates.
Submit the request to the CA of your choice, such as DigiCert, GlobalSign, or IdenTrust. The CA validates the details in the request and, once it approves them, issues the signed certificate.
Add the signed certificate to the CSR entry
The certificate your CA signs completes the entry that the certificate signing request (CSR) created. Add it in Azion Console, in PEM format, including its -----BEGIN CERTIFICATE----- and -----END CERTIFICATE----- lines.
To add the signed certificate in Azion Console:
Access Azion Console > Certificate Manager.
Select the entry that the CSR created. Its Edit Digital Certificate page opens.
In Certificate, paste the certificate your CA signed.
Select Save.
The entry holds the signed certificate, and you can bind it to a domain.
Bind the certificate to the domain
You select the server certificate on each domain. Make sure the certificate covers the hostnames that the domain lists in CNAME, or in cnames in the API.
Console
To bind the certificate to a domain in Azion Console:
Access Azion Console > Domains.
Select the domain. Its edit form opens.
In Digital Certificate, select your certificate.
Select Save.
Azion Console shows “Your domain has been edited”.
To go back to Azion’s own certificate, select Azion (SAN) in Digital Certificate, or send null in digital_certificate_id. The change takes several minutes to reach all of Azion’s distributed infrastructure. For certificate errors and their fixes, refer to Troubleshoot Certificate Manager.
Replace a certificate before it expires
A certificate you upload does not renew itself, and once its validity date passes, it no longer protects traffic. To replace it, upload the new certificate as Upload a server certificate describes, then bind it as Bind the certificate to the domain describes. Delete the old entry after the domain serves the new certificate and the change has propagated.
For why to switch while the old certificate is still valid, refer to Certificate Manager best practices.