HTTPS Certificate Lifecycle
Understand the complete HTTPS certificate lifecycle, including key generation, CSR creation, validation, certificate installation, monitoring, renewal, revocation and expiration.
An HTTPS certificate goes through a lifecycle that begins before a certificate is issued and continues until the certificate is renewed, replaced, revoked or allowed to expire. Understanding this lifecycle helps developers and system administrators deploy TLS correctly, avoid unexpected certificate errors and maintain secure HTTPS services over time.
The certificate itself is only one part of the process. A typical lifecycle includes generating a private key, creating a Certificate Signing Request, validating domain ownership, receiving the certificate from a Certificate Authority, installing the certificate and certificate chain, monitoring its validity, renewing it before expiration and replacing or revoking it when necessary.
What Is the HTTPS Certificate Lifecycle?
The HTTPS certificate lifecycle is the sequence of stages through which a TLS certificate passes during its useful lifetime. Although exact procedures vary between certificate authorities and organizations, the general process is similar for most public HTTPS certificates.
Generate private key
↓
Create CSR
↓
Submit certificate request
↓
Validate domain ownership
↓
Certificate issued
↓
Install certificate
↓
Configure certificate chain
↓
Monitor expiration
↓
Renew or replace
↓
Revoke when necessary
↓
Certificate expires| Stage | Purpose |
|---|---|
| Key generation | Create the private and public key pair |
| CSR creation | Request a certificate from a CA |
| Validation | Verify control over the requested identity |
| Issuance | CA creates and signs the certificate |
| Installation | Configure the certificate on the server |
| Monitoring | Track validity and configuration |
| Renewal | Obtain a replacement before expiration |
| Revocation | Invalidate a certificate before expiration |
| Expiration | Certificate reaches the end of its validity period |
1. Generate the Private Key
The lifecycle normally begins with a private key. The private key is a secret cryptographic value that is paired with a public key. The public key can be included in a certificate, while the private key remains under the control of the server or organization.
Private Key
│
├── kept secret
│
└── mathematically related to
│
▼
Public Key
│
▼
CertificateThe private key is one of the most sensitive assets in the entire certificate lifecycle. A certificate can be replaced if necessary, but a compromised private key can allow an attacker to impersonate the service depending on the circumstances.
Choosing a Key Type
Common HTTPS deployments use RSA or elliptic-curve cryptography. The appropriate choice depends on the server software, client compatibility, organizational requirements and certificate authority support.
| Key Type | General Characteristics |
|---|---|
| RSA | Widely supported and commonly used |
| ECDSA | Smaller keys and efficient elliptic-curve cryptography |
The private key should normally be generated on the system that will use it, or transferred through a carefully controlled secure process. The certificate authority does not need the private key to issue a normal certificate.
2. Create a Certificate Signing Request
After generating the key pair, the next step is usually creating a Certificate Signing Request, commonly called a CSR. The CSR contains the public key and information about the identity for which the certificate is being requested.
Private Key
│
├── signs
▼
CSR
│
├── public key
├── requested identity
└── certificate extensions
│
▼
Certificate AuthorityA CSR does not contain the private key. Instead, it contains the public key and a signature proving possession of the corresponding private key.
What Does a CSR Contain?
| CSR Component | Purpose |
|---|---|
| Public key | Identifies the public half of the key pair |
| Subject information | Contains requested identity information |
| SAN information | Specifies requested DNS names or other identities |
| Signature | Proves possession of the private key |
For modern HTTPS certificates, the Subject Alternative Name extension is especially important because it specifies the DNS names and other identities the resulting certificate should cover.
3. Submit the CSR
The CSR is submitted to a Certificate Authority through its certificate issuance process. The CA examines the request and determines what validation is required before it can issue a certificate.
The certificate authority does not normally receive the private key. The CSR allows the CA to obtain the public key and requested identity information without gaining control of the private key.
4. Domain Validation
Before issuing a publicly trusted HTTPS certificate, the certificate authority needs evidence that the requester controls the domain or other identity being certified. The exact validation method depends on the certificate type and CA procedures.
| Validation Method | General Idea |
|---|---|
| HTTP validation | Place a specified value at a URL on the domain |
| DNS validation | Publish a specified DNS record |
| Email validation | Confirm control through an approved domain email address |
| Organization validation | Additional checks verify an organization |
For ordinary domain-validated certificates, the CA is primarily verifying control over the domain rather than performing a broad investigation of the organization behind it.
5. Certificate Issuance
Once the required validation has succeeded, the Certificate Authority creates and signs the certificate. The resulting certificate contains the public key from the CSR together with the identity information, validity period, issuer and applicable extensions.
CSR
│
▼
CA validation
│
▼
Certificate creation
│
▼
CA signature
│
▼
Issued certificateThe certificate is signed by the CA's private key. Clients can later use the corresponding CA certificate and the certificate chain to verify the issuer signature.
6. Receive the Certificate and Chain
After issuance, the certificate authority provides the server certificate, usually in a format such as PEM. Depending on the CA, the download may also include intermediate certificates required to build the chain to a trusted root.
Server Certificate
+
Intermediate Certificate(s)
+
Private Key
↓
TLS Server ConfigurationThe private key is normally not returned by the CA because it was generated and retained by the requester. The certificate must be paired with the corresponding private key on the server.
7. Install the Certificate
The issued certificate is installed on the server, reverse proxy, load balancer or other system that terminates HTTPS connections. The configuration also needs access to the corresponding private key.
| Component | Purpose |
|---|---|
| Certificate | Identifies the server and contains the public key |
| Private key | Proves possession of the certificate's corresponding key |
| Intermediate chain | Allows clients to build a path to a trusted root |
Different servers use different configuration directives and file formats. Some require separate certificate and key files, while others can use a combined certificate bundle or dedicated certificate stores.
8. Configure the Certificate Chain
Installing only the server certificate is not always sufficient. The server should normally provide the intermediate certificates needed for clients to construct a valid path from the server certificate to a trusted root.
Client Trust Store
▲
│
Root CA
▲
│
Intermediate CA
▲
│
Server Certificate
▲
│
Server9. Verify the HTTPS Configuration
After installation, the certificate should be tested from an actual client. Verification should include the hostname, certificate dates, issuer, certificate chain and TLS configuration.
- Confirm that the certificate matches the requested hostname.
- Check the certificate expiration date.
- Verify the certificate issuer.
- Inspect the intermediate certificate chain.
- Confirm that the private key matches the certificate.
- Check supported TLS protocol versions.
- Test the service from multiple clients when possible.
Checking the Certificate with OpenSSL
OpenSSL can be used to inspect the certificates presented by an HTTPS server. The s_client command is useful for examining the TLS connection and certificates returned during the handshake.
openssl s_client -connect example.com:443 -servername example.com -showcertsThe output can reveal which certificates the server sends and can help identify missing intermediates or unexpected certificate configurations.
10. Monitor Certificate Expiration
Certificate management does not end after installation. Certificates have finite validity periods, so organizations need a process for monitoring expiration dates and ensuring that certificates are renewed before they become invalid.
Certificate installed
↓
Expiration monitoring
↓
Renewal reminder
↓
Renew certificate
↓
Deploy replacement
↓
Verify
↓
Continue monitoringExpiration monitoring is particularly important for organizations with many domains, subdomains, APIs, load balancers and internal services. A single forgotten certificate can cause a production outage.
Why Certificate Expiration Causes Outages
Once a certificate reaches its expiration time, clients performing normal certificate validation can reject it. The server may continue running and responding to network connections, but browsers and other TLS clients can display errors or refuse the connection.
11. Renew the Certificate
Renewal means obtaining a new certificate before the existing certificate expires. The exact renewal process depends on the certificate authority and automation system, but it generally involves proving domain control again and receiving a replacement certificate.
Some automated systems can renew certificates without generating a completely new private key each time, while others may generate a new key and CSR. From a security perspective, key rotation can be beneficial when it is implemented correctly.
Renewal vs Replacement
| Term | Meaning |
|---|---|
| Renewal | Obtaining a new certificate as the current one approaches expiration |
| Replacement | Deploying a different certificate for the same service |
| Rekeying | Generating a new key pair and obtaining a certificate for it |
| Reissuance | Obtaining a new certificate under the CA's issuance process |
Should the Private Key Change During Renewal?
It depends on the certificate-management process. Some renewal workflows reuse the existing private key, while others generate a new key pair. Generating a new key can provide useful key rotation, particularly when there is a reason to replace the old key.
If a private key is suspected to be compromised, simply renewing the certificate while continuing to use the same private key is not an adequate response. The compromised key should be replaced and the affected certificate should be handled according to the appropriate incident process.
Automated Certificate Renewal
Automation is one of the most effective ways to reduce certificate expiration incidents. Certificate-management software can request certificates, perform domain validation, install replacements and reload services without requiring manual intervention for every renewal.
- Detect certificates approaching expiration.
- Start renewal automatically.
- Complete domain validation.
- Obtain the replacement certificate.
- Deploy the new certificate.
- Reload the affected service.
- Verify the new certificate.
- Report failures to administrators.
12. Certificate Revocation
Revocation is the process of invalidating a certificate before its scheduled expiration date. It is normally used when a certificate should no longer be trusted, such as after a private key compromise, incorrect issuance or certain other security events.
| Situation | Possible Action |
|---|---|
| Private key compromised | Revoke and replace certificate |
| Certificate issued incorrectly | Request appropriate revocation or replacement |
| Domain no longer controlled | Replace or revoke as appropriate |
| Certificate no longer needed | Follow CA-specific revocation policy |
| Certificate expired normally | Renew or replace if service continues |
Certificate Revocation Mechanisms
Certificate ecosystems use mechanisms such as Certificate Revocation Lists and the Online Certificate Status Protocol to communicate certificate status. Modern clients and certificate authorities can use different approaches depending on the environment and policy.
| Mechanism | Purpose |
|---|---|
| CRL | Published list of revoked certificate serial numbers |
| OCSP | Online mechanism for checking certificate status |
| OCSP stapling | Server provides a CA-signed status response to clients |
Revocation behavior can vary between clients, operating systems and applications. For that reason, revocation should not be treated as a replacement for good key management and timely certificate replacement.
What Happens When a Certificate Expires?
Expiration means that the certificate has reached the end of its defined validity period. Unlike revocation, expiration normally occurs automatically according to the certificate's Not After value.
Certificate issued
│
├── Valid
│
├── Renewal required
│
└── Not After reached
↓
Certificate expiredIf the service continues using the expired certificate, clients that enforce normal certificate validation can reject the HTTPS connection. The correct solution is to deploy a valid replacement certificate rather than asking users to bypass warnings.
Certificate Lifecycle and Private Keys
The certificate lifecycle and private-key lifecycle are closely related but not identical. A certificate can expire while its private key remains mathematically valid, and a certificate can be revoked because its private key is compromised.
| Event | Certificate | Private Key |
|---|---|---|
| Normal renewal | Replaced | May stay or change |
| Key compromise | Should be replaced or revoked | Must be replaced |
| Certificate expiration | No longer valid | May still exist |
| Server migration | May be copied according to policy | Must be protected during transfer |
Certificate Lifecycle in a Production Environment
A production certificate-management process should assign responsibility for every stage. Teams need to know who owns each domain, where the certificate is installed, when it expires, how renewal is performed and what happens if the private key is compromised.
Certificate inventory
↓
Ownership assigned
↓
Certificate issued
↓
Deployment recorded
↓
Expiration monitored
↓
Automatic/manual renewal
↓
Deployment verification
↓
Old certificate retiredCertificate Inventory
Maintaining an inventory is useful when an organization manages multiple certificates. The inventory can record domains, certificate serial numbers, issuing CAs, expiration dates, deployment locations and responsible teams.
| Inventory Field | Example |
|---|---|
| Domain | api.example.com |
| Issuer | Certificate Authority |
| Expiration | Certificate expiration date |
| Deployment | Production load balancer |
| Owner | Infrastructure team |
| Renewal method | Automated |
Certificate Deployment Verification
Obtaining a new certificate is only part of renewal. The replacement certificate must actually be installed on every relevant TLS endpoint. This can include web servers, reverse proxies, load balancers, CDNs, API gateways and other services.
- Deploy the replacement certificate.
- Verify the private key matches.
- Verify the certificate chain.
- Reload or restart the required service.
- Connect using the production hostname.
- Confirm the new expiration date.
- Check monitoring and logs.
- Retire the old certificate according to policy.
Certificate Lifecycle Across Multiple Servers
Large systems often use the same domain across several TLS endpoints. A certificate may therefore need to be deployed to multiple servers, load balancers or edge systems. Updating only one endpoint can leave users connected to another endpoint that still serves the old certificate.
Certificate Lifecycle and CDNs
When HTTPS is terminated at a CDN, the certificate may be managed by the CDN rather than directly on the origin server. The CDN still has to maintain the certificate lifecycle, while the origin may have a separate TLS certificate for the connection between the CDN and the origin.
User
↓ HTTPS
CDN certificate
↓ HTTPS
Origin certificate
↓
Application serverThis creates multiple certificate-management points. Teams should distinguish the certificate presented to end users from the certificate used for the CDN-to-origin connection.
Common Certificate Lifecycle Mistakes
- Generating the CSR with incorrect hostnames.
- Losing the private key associated with the certificate.
- Sending the private key to the Certificate Authority unnecessarily.
- Installing the certificate without its required intermediate chain.
- Forgetting to deploy renewal certificates to every TLS endpoint.
- Monitoring expiration but not verifying automatic deployment.
- Waiting until the final days before expiration to renew.
- Ignoring certificate warnings instead of fixing their cause.
- Failing to rotate a private key after suspected compromise.
- Keeping incomplete or outdated certificate inventories.
- Forgetting certificates managed by CDNs or load balancers.
Best Practices for HTTPS Certificate Management
- Generate and protect private keys securely.
- Use correct SAN entries when creating CSRs.
- Keep private keys separate from certificates and public bundles.
- Install the complete required certificate chain.
- Monitor every production certificate continuously.
- Renew certificates automatically whenever practical.
- Alert administrators when renewal or deployment fails.
- Verify renewed certificates after deployment.
- Maintain an inventory of certificates and their owners.
- Rotate compromised private keys immediately.
- Remove retired certificates from active configurations.
- Test certificate renewal procedures before they are needed.
A Practical Certificate Lifecycle Checklist
Before issuance:
[ ] Generate private key
[ ] Confirm key protection
[ ] Create CSR
[ ] Check SAN entries
[ ] Submit CSR
During issuance:
[ ] Complete domain validation
[ ] Verify certificate details
[ ] Obtain intermediate certificates
Deployment:
[ ] Install certificate
[ ] Install required chain
[ ] Configure private key
[ ] Reload service
[ ] Test HTTPS
After deployment:
[ ] Check hostname
[ ] Check expiration
[ ] Check certificate chain
[ ] Add monitoring
[ ] Record certificate ownership
Before expiration:
[ ] Start renewal
[ ] Validate replacement
[ ] Deploy new certificate
[ ] Verify every endpoint
If compromised:
[ ] Replace private key
[ ] Replace/revoke affected certificate
[ ] Investigate exposure
[ ] Verify replacement deploymentFrequently Asked Questions
What is the HTTPS certificate lifecycle?
The HTTPS certificate lifecycle is the sequence of generating a private key, creating a CSR, validating the domain, receiving a certificate, installing it, monitoring it, renewing or replacing it and revoking it when necessary.
Does a CSR contain the private key?
No. A CSR contains the public key and certificate request information and is signed to prove possession of the corresponding private key. The private key should remain secret.
What happens after a certificate is issued?
The certificate is installed on the TLS endpoint together with the corresponding private key and required intermediate certificates. The configuration should then be tested and monitored.
Why do HTTPS certificates expire?
Certificates have defined validity periods so that identity and key-management information does not remain valid indefinitely. Services must obtain and deploy replacement certificates before expiration.
How early should an HTTPS certificate be renewed?
The exact timing depends on the certificate authority and automation system. The important principle is to renew early enough to allow time for validation, deployment and troubleshooting before the existing certificate expires.
Does renewing a certificate require a new private key?
Not necessarily. Some renewal workflows reuse the existing private key, while others generate a new key. A new key is especially important when the previous key may have been compromised.
What is certificate revocation?
Revocation invalidates a certificate before its scheduled expiration date. It can be appropriate when a private key is compromised, a certificate was incorrectly issued or another event requires the certificate to stop being trusted.
What is the difference between expiration and revocation?
Expiration occurs automatically when the certificate reaches the end of its validity period. Revocation is an intentional action used to invalidate a certificate before that date.
Why is the certificate chain important?
The chain allows clients to connect the server certificate to a trusted root CA. If required intermediate certificates are missing, some clients may be unable to validate the certificate.
Can HTTPS certificate renewal be automated?
Yes. Automated certificate-management systems can request renewals, perform validation, obtain replacement certificates and deploy them. Reliable automation should also verify deployment and alert administrators when something fails.
Helpful Certificate Tools
A Certificate Expiration Checker helps identify certificates approaching their expiration date, a CSR Generator creates Certificate Signing Requests, a CSR Decoder displays information contained in existing CSRs, a Certificate Chain Viewer helps inspect the relationship between server and CA certificates, and a PEM Certificate Viewer displays certificate details from PEM-encoded files.
Conclusion
HTTPS certificates are not a one-time configuration. They follow a complete lifecycle that begins with private-key generation and CSR creation, continues through domain validation, certificate issuance and server deployment, and ends with renewal, replacement, revocation or expiration.
Reliable certificate management combines secure private-key handling, correct certificate-chain configuration, expiration monitoring, automated renewal and deployment verification. Treating certificates as managed infrastructure rather than static files helps prevent avoidable HTTPS outages and makes it easier to respond quickly when certificates or private keys need to be replaced.