Keeping HTTPS reliable requires more than installing a certificate once. This practical SSL certificate maintenance guide gives you a reusable process for inventorying certificates, preparing renewals, testing HTTP-to-HTTPS redirects, fixing mixed-content errors, and verifying websites and APIs after a certificate or server change.
Overview
An SSL certificate enables encrypted HTTPS connections between a client and a server. In current terminology, SSL is commonly used to describe the broader TLS system that protects those connections. A certificate can be valid while a website still has security problems: a hostname may be missing from the certificate, an old HTTP URL may remain in the page, a redirect may loop, or an API client may reject the server chain.
Website SSL maintenance should therefore cover four separate controls:
- Certificate validity: Confirm that each certificate covers the required hostnames and has not expired.
- Renewal operations: Make sure automated or manual renewal works before the expiration date becomes urgent.
- HTTPS routing: Redirect HTTP requests correctly without creating loops, broken paths, or unintended redirects.
- Content and client compatibility: Remove mixed content and verify that browsers, APIs, monitors, and integrations can establish trusted connections.
Keep a record for every production and non-production hostname, including subdomains, API endpoints, staging environments, mail-related web services, and alternate domains. A certificate inventory is useful during domain changes, cloud migrations, security reviews, and incident response.
Certificate inventory template
Store this information in a system your operations team can access and update. Do not place private keys in a shared document or ticket.
| Field | Example entry |
|---|---|
| Hostname | www.example.com |
| Environment | Production |
| Certificate provider or issuer | Internal record |
| Covered names | example.com, www.example.com |
| Certificate location | Load balancer, web server, or hosting control panel |
| Renewal method | Managed renewal, ACME client, or manual |
| Expiration date | Record the observed date and time zone |
| Owner and escalation contact | Team or role, not only an individual |
| Last verification | Date, test result, and operator |
Checklist by scenario
Before certificate renewal
- List every hostname served by the certificate. Check the apex domain,
www, API subdomains, regional hosts, and any aliases. - Confirm that DNS points to the system expected to answer the certificate validation request. Recent DNS changes can send validation traffic to the wrong server.
- Identify where TLS terminates. It may terminate at a cloud load balancer, CDN, reverse proxy, ingress controller, or the origin web server.
- Check that the renewal account, API credential, or ACME client can still run. Review permissions without exposing private keys or secret values.
- Confirm that automated renewal has a notification path. A successful renewal is not useful if nobody is alerted when the process fails.
- Run a test renewal or staging validation where the certificate system supports it. Avoid replacing a production certificate solely to test a process.
- Record the expected installation location and reload procedure. Some services require a configuration reload before the new certificate is served.
After a renewal or certificate replacement
- Inspect the certificate actually served over the public hostname, not just the file stored on the server.
- Verify the subject alternative names include every required hostname.
- Check the expiration date and the certificate chain presented to clients.
- Test the main page, important forms, authenticated areas, and representative assets.
- Test API endpoints with the same hostnames and paths used by applications. Confirm expected status codes, headers, and authentication behavior.
- Review load-balancer or origin nodes individually if more than one server can answer requests. One unupdated node can cause intermittent certificate errors.
- Check monitoring, uptime probes, deployment jobs, and scheduled integrations for TLS failures.
If you are moving a website to cloud hosting, perform these checks both before and after DNS cutover. The old and new environments may use different certificate stores, redirect rules, or TLS termination points. A related SSL certificate errors troubleshooting guide can help isolate hostname, chain, and server-configuration failures.
HTTP-to-HTTPS redirect test workflow
A redirect should move an HTTP request to the corresponding HTTPS URL while preserving the intended host, path, and query string. Test more than the homepage:
- Request
http://example.com/and confirm it redirects to the intended HTTPS URL. - Repeat the test for
http://www.example.com/and any canonical domain variant. - Test a nested path, such as
/products/item, and a URL with query parameters. - Confirm there is no redirect loop between the proxy and origin. This can happen when the origin does not receive or trust the forwarded HTTPS state.
- Check that the final HTTPS response is successful and does not redirect to an unexpected hostname.
- Verify that HTTP methods and application behavior remain appropriate for forms, API requests, and webhooks. Do not assume every client follows redirects safely.
For an Nginx server where TLS is terminated directly, a simple redirect may look like this:
server {
listen 80;
server_name example.com www.example.com;
return 301 https://www.example.com$request_uri;
}
The correct configuration depends on your canonical hostname and proxy architecture. If HTTPS terminates at a load balancer, configure the redirect at the appropriate edge layer and ensure the origin understands the forwarded protocol.
Mixed-content troubleshooting table
Mixed content occurs when an HTTPS page requests a resource over HTTP. Modern browsers may block some resources or warn about others, so fix the source rather than relying on browser exceptions.
| Symptom | Likely cause | Action |
|---|---|---|
| Images or fonts are blocked | Absolute http:// URLs in HTML or CSS | Change URLs to HTTPS and verify the asset host has a valid certificate. |
| Scripts fail to load | JavaScript is requested over HTTP | Update the script source, build configuration, or dependency URL. Do not bypass the warning. |
| API calls fail in the browser | HTTPS frontend calls an HTTP API | Serve the API over HTTPS and check CORS settings, redirects, and certificate coverage. |
| CSS references remain insecure | URLs embedded in stylesheets or generated CSS | Search compiled assets and caches, not only source templates. |
| Third-party widget breaks | Vendor endpoint or callback is HTTP-only | Use the vendor's HTTPS endpoint or replace the integration if secure delivery is unavailable. |
| Errors appear only after deployment | Environment variables contain an HTTP base URL | Review production configuration, server-side rendering, and cached output. |
Use browser developer tools to identify the exact blocked URL. Then search templates, content records, CSS, JavaScript bundles, redirects, environment variables, and database fields for the insecure address. A content security policy can help detect or restrict insecure requests, but it does not replace correcting the underlying URLs.
What to double-check
- Hostname coverage: A certificate for
example.comdoes not automatically mean every subdomain is covered. Check the names explicitly. - Certificate chain: Some clients validate chains differently. Verify the complete chain served by the endpoint, especially after changing providers or server software.
- Multiple endpoints: Test IPv4 and IPv6 paths if both are published. Also check each load-balancer node, region, or CDN configuration where applicable.
- Clock accuracy: Incorrect system time can make an otherwise valid certificate appear expired or not yet valid.
- Private-key handling: Limit access, use the hosting platform's secret-management controls where available, and never place private keys in source control or public tickets.
- Renewal permissions: A process can fail after an account, DNS token, file path, or deployment permission changes.
- Application URLs: Update canonical URLs, sitemap entries, image URLs, API base URLs, webhooks, and callback URLs after enabling HTTPS.
- Monitoring: Alert before expiration and monitor certificate validity, hostname coverage, and endpoint availability separately.
After changes, use a staging environment when possible. A cloud staging environment lets you test redirects and generated assets before changing production traffic. For performance regressions caused by extra redirects or slow TLS termination, consult a website speed optimization checklist.
Common mistakes
- Renewing only the main domain: API and subdomain certificates may be managed separately.
- Checking the certificate file instead of the live endpoint: The server may still be serving an older certificate from another node or proxy.
- Using a redirect to solve mixed content: Browsers can block insecure subresources before a redirect makes them secure. Change the embedded URL to HTTPS.
- Forgetting caches: CDN, page, browser, and application caches can continue serving old HTTP references after a deployment.
- Testing only in one browser: Include API clients, mobile applications, monitoring probes, command-line tools, and partner integrations.
- Replacing certificates manually without rollback: Keep the previous known-good configuration until post-renewal verification is complete.
- Assuming HTTPS means every security setting is complete: Review redirect behavior, cookies, security headers, access controls, and application-level vulnerabilities separately.
For WordPress sites, check the WordPress URL settings, media library links, theme files, plugins, and cached page output. Managed WordPress hosting may automate certificate installation, but the site owner still needs to verify redirects, embedded content, and integrations.
When to revisit
Use this checklist before every planned certificate renewal, domain or DNS change, server migration, CDN or load-balancer change, major website release, and security review. Revisit it after changing hosting providers, adding a subdomain, launching an API, or modifying a reverse proxy.
Set a recurring operational review based on your certificate inventory and renewal process. The review should confirm that alerts reach the current team, automated renewal still has the required permissions, and test coverage reflects the current architecture. Also update the procedure when browser behavior, certificate authority requirements, TLS defaults, hosting controls, or deployment tools change.
A practical final pass is:
- Open the inventory and mark certificates, owners, renewal methods, and expiration dates that have changed.
- Run renewal or validation tests in a safe environment.
- Test HTTP redirects, canonical hostnames, representative paths, and query strings.
- Inspect browser warnings and search for remaining
http://assets. - Verify the live certificate on every production endpoint and API.
- Record the result, unresolved risks, and next review date.
Maintained this way, HTTPS becomes a repeatable reliability control rather than a last-minute expiration task.