SSL Certificate Monitoring for Wildcards and SANs
Improve ssl certificate monitoring for wildcards and SANs with hostname checks, renewal verification and alerts that reach the right team.
Wildcard and SAN certificates reduce certificate administration, but they do not reduce the number of endpoints that can fail. Effective ssl certificate monitoring must verify which certificate each hostname actually receives, not just when a shared certificate expires.
A renewed wildcard can be live on your load balancer while one regional proxy still serves the old copy. A SAN renewal can remain valid yet drop a production hostname. Both failures require checks that connect certificate coverage to the services using it.
Understand what wildcards and SANs actually cover
The Subject Alternative Name (SAN) extension lists the identities a certificate covers. A wildcard certificate usually contains a wildcard DNS name in that extension. A single certificate can contain both wildcard entries and explicitly named hosts.
For modern TLS service identity verification, check the SAN extension rather than relying on the certificate’s Common Name. RFC 9525 defines service identity matching, including the restrictions on wildcard matching.
| Certificate SAN entries | Requested hostname | Covered? |
|---|---|---|
*.example.com |
api.example.com |
Yes |
*.example.com |
example.com |
No |
*.example.com |
eu.api.example.com |
No |
example.com, *.example.com |
example.com |
Yes |
api.example.com, login.example.com |
admin.example.com |
No |
A wildcard matches one leftmost label, not every descendant in the DNS hierarchy. Certificates for multiple exact names are often called multi-domain or SAN certificates, but SAN certificates can also include wildcards.
For ssl certificate monitoring, wildcard coverage is a matching rule, not a discovery mechanism. The certificate cannot tell you every subdomain currently using it.
Build an inventory of names and deployment targets
Start with the services, then map their certificates. An inventory containing only certificate files misses systems that serve outdated copies or use certificates managed by another team.
Use several discovery sources rather than assuming one is complete:
- Public services: Reconcile authoritative DNS records with CDN, load balancer, API gateway and cloud application configurations.
- Public issuance: Review Certificate Transparency records for unexpected names or issuers, recognizing that issuance records do not prove current deployment.
- Internal services: Check private DNS zones, ingress configurations, internal load balancers and service inventories using an authorized internal probe.
- Less-visible systems: Include administrative interfaces, VPN gateways, appliances and nonstandard TLS ports within the approved monitoring scope.
Create one inventory record per hostname, port and intended TLS termination target. Record the environment, service owner, certificate manager, renewal mechanism and whether the certificate is shared elsewhere. Include the relevant region or monitoring location when different routes can reach different infrastructure.
For SAN certificates, keep the required DNS names separately from the names observed in the latest certificate. Otherwise, a missing hostname can disappear from both your deployment and your monitoring expectations during the same renewal.
For wildcards, maintain an explicit list of active service names. A probe to api.example.com says nothing about whether billing.example.com reaches a correctly configured listener, even when both should use the same wildcard certificate.
Configure ssl certificate monitoring for SNI and trust validation
Connect using the intended hostname
Server Name Indication (SNI) tells a TLS server which hostname the client wants. Shared listeners often choose their certificate using this value. Connecting only to an IP address can return a default certificate that normal clients never see.
An illustrative OpenSSL check is:
openssl s_client \
-connect api.example.com:443 \
-servername api.example.com \
-verify_hostname api.example.com \
-verify_return_error \
-showcerts </dev/null
This requests the intended hostname and enables hostname verification. Chain validation requires an appropriate local trust store. For private PKI, configure the intended organizational CA trust rather than disabling verification.
To test a specific authorized deployment target, replace the connection address with its IP while retaining both hostname options. For example, -connect 203.0.113.10:443 can target one listener while SNI and identity verification still use api.example.com.
The OpenSSL s_client documentation explains these options. In automated ssl certificate monitoring, record handshake failures, validation errors and timeouts as distinct outcomes rather than reporting all three as certificate expiration.
Inspect the certificate separately from validating it
Save the leaf PEM certificate from the connection output as served-leaf.pem, then inspect its identity and dates:
openssl x509 -in served-leaf.pem -noout \
-dates -issuer -serial -ext subjectAltName
This inspection command reads certificate fields. It does not independently prove that the endpoint is trusted, that the hostname matches or that the certificate has not been revoked.
Also distinguish the chain the server sends from the trust path a client successfully builds. A missing intermediate can affect some clients even if another client succeeds using cached information. Choose probe trust stores that represent your important client populations.
If your team needs a manual troubleshooting reference, this guide to checking certificate details and validation results explains the broader inspection workflow.
Check coverage changes, not just expiration
Treat ssl certificate monitoring as a set of separate assertions. A certificate can pass one check while failing another, particularly when many services share its deployment lifecycle.
| Check | Wildcard and SAN-specific purpose |
|---|---|
| Validity dates | Detect expiration and certificates that are not yet valid |
| Hostname matching | Confirm that each requested name matches an exact SAN or permitted wildcard |
| Required SAN coverage | Catch renewal templates that omit a necessary identity |
| Chain and trust | Identify incomplete chains or issuers outside the intended trust policy |
| Deployment consistency | Find targets still serving an old or unexpected certificate |
| Revocation status | Detect revoked certificates when supported status information can be obtained and validated |
Compare SAN entries as a normalized set rather than treating a change in their order as an incident. Removed required names deserve urgent attention. Added names should trigger a policy review when they broaden scope unexpectedly, but they are not automatically an outage.
Do not assume an ordinary TLS handshake checks revocation. A monitor needs explicit support for applicable OCSP or CRL checks and must validate the response or list appropriately. RFC 6960 defines OCSP status responses, including good, revoked and unknown.
If testing OCSP stapling, distinguish an absent staple from a confirmed revocation. Also distinguish unavailable status information from a verified good status. Your response should follow the service’s documented revocation policy.
Make alerts actionable across shared certificates
An expiry alert without an owner is an inventory problem disguised as a notification. Assign responsibility at two levels: the team that manages issuance and the team that operates each deployment target.
For ssl certificate monitoring, group related warnings without hiding endpoint failures. Ten affected hostnames sharing one certificate may justify one renewal incident, but a single stale proxy still needs a clearly identified remediation target.
For example, an initial policy might create a renewal task at 30 days remaining, escalate at 14 days and page the service owner at 7 days if renewal or deployment is still unresolved. These are starting points, not universal thresholds. Short-lived certificates need tighter thresholds based on their renewal cadence and recovery time.
Page promptly for active hostname mismatches, expiration or trust failures affecting production. Treat unexpected issuer or SAN changes according to your security policy rather than assuming every valid replacement is approved.
Each alert should identify the hostname, port, SNI value, observed certificate, failing location and responsible team. Include a runbook reference and the last successful validation time.
Use maintenance windows for planned work, but require a successful validation afterward. A silenced alert is not evidence that a renewal succeeded.

Verify renewal across every relevant termination point
Successful issuance is only the first stage of renewal. The new certificate must reach every intended TLS listener, load correctly and continue covering the required names.
After a renewal, repeat hostname and trust checks across the deployment targets in your inventory. Confirm the expected validity period and SAN coverage, then verify that the service still returns the expected HTTP or API response. A valid certificate does not prove that the application behind it is healthy.
Your ssl certificate monitoring workflow should explicitly identify stale deployments. An old certificate that remains valid today can conceal a failed rollout until its expiration becomes urgent. This is one reason expiry monitoring can miss renewal failures.
Use certificate fingerprints or serial numbers as deployment evidence, but do not require a single fingerprint everywhere without understanding the architecture. A service may legitimately use separate regional certificates or different RSA and ECDSA certificates selected according to client capabilities. Define the expected certificate set for each target.
For wildcard rotations, verify all known consumers rather than sampling one convenient hostname. For SAN renewals, compare the required identity set before and after deployment.
Close the change only after the intended targets pass. Keep the previous failure and recovery timestamps so the next incident review can distinguish issuance delays from distribution or reload failures.
Understand the limits of external checks
An external probe observes the certificate presented on its connection path. It cannot prove what is stored on every server, whether an unused private key is protected or whether the next automated renewal will work.
Keep three kinds of evidence separate: issuance records, deployed certificate state and renewal-system health. They answer different operational questions.
External ssl certificate monitoring is especially useful for detecting what a client can encounter, but its visibility depends on DNS resolution, geography, network access and handshake parameters. Multiple locations improve coverage without guaranteeing that every CDN edge or backend has been sampled.
Internal-only services require a probe with authorized network access. Private certificates also require the correct trust configuration. Local checks or management integrations are needed to inspect certificate stores, file permissions, renewal jobs and private-key distribution.
Shared private keys deserve a separate security review. Reusing one wildcard certificate and key across many systems increases the impact of a compromised key. Replacing that certificate can also require coordinated updates across all consumers. Where practical, use narrower certificates and separate keys to reduce shared risk.
None of these limitations makes endpoint checks less useful. They define where additional evidence is needed and prevent a green dashboard from being interpreted as a complete certificate-security assessment.
Frequently asked questions
Does one wildcard certificate mean I only need one monitor? No. A wildcard describes name coverage, not deployment coverage. Different hostnames can reach different listeners, regions or providers. Test the active names and termination targets that matter to your services.
Can a SAN certificate contain wildcard names? Yes. A SAN extension can contain exact DNS names and wildcard DNS names together. Each entry follows its own matching rules, so *.example.com does not cover the apex domain or a deeper name such as eu.api.example.com.
Can ssl certificate monitoring detect a missing SAN after renewal? Yes, if the monitoring workflow checks each required hostname or compares the presented certificate against a separately maintained required-name inventory. Checking only the expiration date will not identify the coverage gap.
Does a successful HTTPS request prove the certificate is not revoked? No. Revocation behavior depends on the client, available status information and validation policy. Confirm that your monitoring method supports the required OCSP or CRL checks rather than inferring revocation status from a successful connection.
Should every SAN change trigger an incident? Not necessarily. Removing a required identity can break clients and should receive urgent attention. Expected additions may be normal, while unapproved scope expansion warrants investigation. Compare changes against an approved identity inventory.
Start with your highest-impact shared certificates
Choose one production wildcard or multi-domain certificate and map every known consumer before expanding coverage. Use MyMonitor365 for SSL, HTTP/API, DNS and multi-location monitoring, then evaluate your required checks against that inventory. A free plan is available with no credit card required.
#SSL #TLS #CertificateManagement #UptimeMonitoring #ITOperations