SSL Clock

Find names with an SSL certificate discovery tool

Transparency logs, SAN lists, and cloud inventories produce candidates. Keep the names that answer on the public internet.

An SSL certificate discovery tool builds a list of names and certificates you did not already have in a spreadsheet. The useful sources are Certificate Transparency indexes, the subject alternative names on a certificate you can already reach, public DNS for the names you suspect, and the inventory APIs of the platforms that request certificates for you. Discovery ends when you decide which of those names still answer on the public internet. Monitoring is the step after that.

SSL certificate discovery tool

Start with the names you already serve, because a tool that begins from the whole internet will bury them. Then add names the certificate authorities have logged, names printed on the certificates you already fetched, and names your DNS host or cloud account requested. Drop anything that does not resolve to an address you operate, and drop anything that is only on a private network. Private and internal certificates are not supported. There is no agent to install beside a lab CA.

A discovery pass is a point in time. Certificates issued tomorrow will not be on today's list. That is why the output is a candidate list, not a watch. The SSL checker is how you confirm one candidate. It reads chain, hostname, issuer, and expiry for a single public host and then discards the name.

Find names in a certificate transparency index

crt.sh is the usual first index. One registered domain, including names that were logged under it:

curl -fsS 'https://crt.sh/?q=%25.example.com&output=json' | jq -r '.[].name_value' | sed 's/^\*\.//' | sort -u

name_value can contain several DNS names separated by newlines, and wildcard entries start with *.. A wildcard is not a hostname you can connect to. Strip the asterisk and decide which real names you serve under that pattern. jq prints every row. If crt.sh is overloaded you get HTTP 502 and the nginx 502 Bad Gateway page, or curl: (28) Operation timed out. An empty JSON array is the result that means the index has nothing for that query. A 502 does not mean that.

The same search is written up with the log endpoints that do not search by name on certificate transparency search. Google get-sth and Cloudflare log URLs prove a log is publishing a tree head. They will not list www.example.com.

Read names off a certificate you can already reach

The certificate on the apex often lists www, mail, and an API name that nobody put in the monitoring spreadsheet. OpenSSL prints them from the live handshake:

echo | openssl s_client -connect example.com:443 -servername example.com 2>/dev/null | openssl x509 -noout -ext subjectAltName

Each DNS: value is a candidate. Connect to that name on its own. A name on the certificate is not proof this host answers for it. The CDN or the other datacenter may present a different file, with a different expiry. Paste a saved PEM into the certificate decoder when the file is on disk and you have not installed it yet. A signing request that has not been issued yet belongs in the CSR decoder. It has names and a public key, and it has no expiry, because it is not a certificate.

DNS finds addresses, not an inventory

dig +short example.com A and dig +short www.example.com CNAME tell you where the names you already thought of point. They do not list the rest of the zone. A zone transfer is the command that would, and public servers should refuse it:

dig AXFR example.com @ns1.example.com

A refusal or a timeout is the normal result. Do not treat a failed AXFR as a complete inventory. Use the certificate transparency list for names, then resolve the ones you intend to keep. A name that does not resolve cannot be checked from the public internet.

Platform inventories: cert-manager, ACM, and Cloudflare

cert-manager's inventory is the Certificate objects, not the ingress host rules alone. An ingress host with no matching Certificate is a name that is served by a default certificate or by nothing. List them:

kubectl get certificate,ingress -A

kubectl describe certificate shows Ready, the Secret name, and the DNS names on the request. Ready: False with Waiting for HTTP-01 challenge propagation: wrong status code '404', expected '200' means the authority never issued, so a transparency search will not show a new row for that attempt. Ready: True means the Secret holds a certificate. It still does not mean the ingress controller reloaded. Check the public hostname after you read the Secret.

On AWS, issued public certificates in one region are:

aws acm list-certificates --certificate-statuses ISSUED --query 'CertificateSummaryList[].DomainName' --output text

describe-certificate adds SubjectAlternativeNames and NotAfter. PENDING_VALIDATION certificates are requests, not installs. The listener or the CloudFront distribution is what visitors hit. If the ARN on the listener is a different certificate than the one you just found, discovery of the ACM inventory overstates what the handshake uses. Amazon-issued public certificates are not exportable to nginx. aws acm export-certificate fails on those ARNs because the private key stays inside ACM.

Cloudflare's zone holds the names on that zone, which is a better inventory than a guess, and it is still not the origin. Edge certificates are the ones visitors see when the proxy is orange-clouded. Origin certificates are the ones Cloudflare presents when someone connects directly to your server, or the ones your server presents back to Cloudflare. Error 526, Invalid SSL certificate, means Full (strict) rejected the origin certificate. Error 525 means the handshake to the origin failed before that. A discovery list should record which name is proxied and which certificate each side is supposed to present. The chain checker reads the chain a public hostname sends, which is the edge certificate when the proxy is on.

nginx, Apache, and Caddy only show the file they loaded

A local file listing is discovery of the disk, not of the internet. ls /etc/nginx/ssl can show a newer PEM than the worker has loaded. nginx -T prints the config nginx would load, including ssl_certificate paths. It does not print the certificate a remote client receives. After you map a path to a file, compare:

openssl x509 -in /etc/nginx/ssl/example.crt -noout -serial -enddate
echo | openssl s_client -connect example.com:443 -servername example.com 2>/dev/null | openssl x509 -noout -serial -enddate

Different serials mean the process did not reload. There is often no error in the log for that. The errors that do get printed are the ones that stop a reload: cannot load certificate with No such file or directory, and key values mismatch when the private key does not match the certificate. Apache's matching messages are AH01909 when the certificate does not include the server name, and AH02565 when the key does not match. Caddy's tls.obtain line could not get certificate from issuer means the name never made it into a new log entry.

What you keep, and what you watch

Keep a name when a public connection returns the certificate you meant, on the port clients use. Port 443 is the default. Mail that speaks TLS directly can be host:993. STARTTLS on port 587 is not in the checker form. Use the OpenSSL -starttls smtp flag for that one look, then decide if the host is in scope.

The SSL expiry checker accepts up to 10 of the survivors in one paste and shows not-after in UTC and whole days left. The paste is not saved. Monitoring is what repeats the check. Free is $0 a month for 3 sites. Starter is $9 a month for 25. Pro is $29 a month for 150 with hourly checks. Business is $69 a month for 500 with hourly checks. Reminders land at 30, 14, 7, 3, and 1 day. Start monitoring free once the candidate list is the list you actually serve. Names that only exist inside a VPC stay off the list.

Related guides

Guides by team type

Pick the page that matches how you run certificates today:

Check a site with the free SSL checker or see pricing. Read the 47-day certificate timeline and Let's Encrypt expiry emails. The set is on free SSL tools. Every guide is indexed on SSL certificate guides. Comparisons are indexed on SSL monitoring comparisons.

FAQ

Does an SSL certificate discovery tool find private certificates?

No. Public discovery reads Certificate Transparency, public DNS, and the certificate a public host sends. Private and internal certificates are not in those logs, and they are not supported.

Is a name in crt.sh a name I should monitor?

Only if something on the public internet still answers for it. Logged names include old campaigns, unused SANs, and certificates that were issued and never installed.

Will dig list every hostname?

No. A DNS query returns the records you asked for. It does not enumerate the zone unless the server allows a transfer, which public authoritative servers should refuse.

What is the difference between discovery and monitoring?

Discovery builds a list once. Monitoring repeats a TLS connection and tells a person when the served certificate is close to expiry, mismatched, or failing its chain.