Dev.to Security 🔐 Cybersecurity 👁 0 📖 17 min read

I Found My Certificate at Log Entry 556,302,689, Not in the Index

The whole idea of certificate transparency fits in one sentence: every TLS certificate issued in your name should be written into a log anyone can read. That way, if someone issues a certificate for your domain without t

The whole idea of certificate transparency fits in one sentence: every TLS certificate
issued in your name should be written into a log anyone can read. That way, if someone
issues a certificate for your domain without telling you, you can see it. Fine idea. This
morning I sat down to read that log for my own domain, and I looked where I always
look — the search box at crt.sh.

Nothing, it said.

The certificate my browser trusted at that moment — issued on 10 November, valid through
8 February, serial number 91AAE5593BCCBB2B0E1532C7B22B9BAF — was not present in the index
I was searching. I asked by serial, and got an empty array. I asked by domain name, and got
a record for a completely different subdomain. Then I opened the log without the middleman:
inside my certificate was the line number the log had handed it on a receipt.
556,302,689. I went to that line and found my certificate — the serial number matching
down to the byte.

This article is the record of that forty-minute chase: what the browser actually looks at,
what the index missed, how I read the log by hand, and the bigger gap I noticed along the
way — there is not a single record on my domain limiting which certificate authority may
sign for it. Every measurement covers one domain and one machine: macOS 26.6.2 (build
25G83), s_client from OpenSSL, Python 3.13.3. The counting moment is 6 December 2026,
08:40–09:20 (Europe/Istanbul).

The browser holds receipts, not an index

When a browser visits a site, it consults no search service. It looks at signed receipts
embedded inside the certificate: SCTs (Signed Certificate Timestamps). Each receipt means
a log said "I took this certificate and recorded it," and signed that statement with its
own key.

My certificate carries two receipts:

$ echo | openssl s_client -connect mustafaerbay.com.tr:443 \
    -servername mustafaerbay.com.tr 2>/dev/null | openssl x509 -outform pem > live.pem
$ openssl x509 -in live.pem -noout -issuer -dates -serial
issuer=C=US, O=Google Trust Services, CN=WE1
notBefore=Nov 10 03:54:56 2026 GMT
notAfter=Feb  8 04:53:30 2027 GMT
serial=91AAE5593BCCBB2B0E1532C7B22B9BAF
$ openssl x509 -in live.pem -noout -text | grep -A4 'Signed Certificate Timestamp'
                Signed Certificate Timestamp:
                    Log ID    : 00:1A:5D:1A:1C:2D:93:75:...:DE:E1:A0:1E
                    Timestamp : Nov 10 04:54:57.344 2026 GMT
                    Extensions: none
                Signed Certificate Timestamp:
                    Log ID    : 59:6E:6C:33:86:94:B2:59:...:14:3C:EE:59
                    Timestamp : Nov 10 04:54:57.444 2026 GMT
                    Extensions: 00:00:05:00:21:28:81:61

Two receipts, a hundred milliseconds apart. The certificate's lifetime is 90 days, and
Chrome's transparency policy
imposes three conditions at once on embedded receipts. First: at least one receipt must
come from a log that was Qualified, Usable or ReadOnly at the time of check. Second:
for certificates whose lifetime does not exceed 180 days there must be receipts from at
least two distinct logs — and Retired logs count towards that number. Third: at least two
of those receipts must belong to distinct log operators. Reading the second condition on
its own and concluding "two receipts are enough" is misleading; if both receipts came from
retired logs, Chrome would still refuse.

I matched the Log IDs against the log list Chrome publishes. The first is DigiCert's
Wyvern2027h1 log, classic RFC 6962 type. The second is Geomys' Tuscolo2027h1 log, and
it sits in a completely different section of that list: tiled_logs. Both are usable, so
all three conditions hold.

$ curl -s https://www.gstatic.com/ct/log_list/v3/log_list.json -o log_list.json
$ python3 - <<'PY'
import json, collections
d = json.load(open('log_list.json'))
print(d['version'], d['log_list_timestamp'])
for key, label in (('logs','classic'), ('tiled_logs','tiled')):
    state = collections.Counter()
    for o in d['operators']:
        for L in o.get(key) or []:
            state[next(iter(L.get('state', {'?':0})))] += 1
    print(label, sum(state.values()), dict(state))
PY
99.2 2026-12-05T13:37:55Z
classic 26 {'usable': 17, 'readonly': 6, 'retired': 3}
tiled 63 {'usable': 38, 'qualified': 25}

26 against 63. Restricted to the usable ones the picture is sharper still: 17 classic logs,
38 tiled. The ecosystem has moved to a new log architecture and I had not noticed. (The
all_logs_list.json file in the same directory says 45 and 121, but it also counts
rejected and pending logs; the ratio does not change, only the headline number inflates.)
Those eight bytes in the second receipt's Extensions field are a marker of that new
architecture — in receipts from classic logs that field is empty, which is why the first
one reads none.

I asked the index twice and got an incomplete answer twice

crt.sh has been the de facto search engine for this for years, and I had been living
without thinking about the difference between "seeing my certificates" and "searching
crt.sh."

First I asked with the most precise key I had, the serial number:

$ curl -s "https://crt.sh/?serial=91aae5593bccbb2b0e1532c7b22b9baf&output=json"
[]

Two bytes. Then by domain name, excluding the expired ones:

$ curl -s "https://crt.sh/?identity=mustafaerbay.com.tr&output=json&exclude=expired" |
    python3 -c "import json,sys
d=json.load(sys.stdin); print(len(d))
for r in d: print(r['not_before'][:10], r['not_after'][:10], r['serial_number'][:12], r['name_value'])"
2
2026-09-08 2026-12-07 055064c70d76 mta-sts.mustafaerbay.com.tr
2026-09-08 2026-12-07 055064c70d76 mta-sts.mustafaerbay.com.tr

There are two traps in those two lines. The first: what reads as "two valid certificates" is
one certificate. The serial numbers are identical — one is the precertificate, the other the
certificate proper. The logs record both, and the index shows both as rows. Running the
same query without exclude makes the ratio clear:

$ curl -s "https://crt.sh/?identity=mustafaerbay.com.tr&output=json" |
    python3 -c "import json,sys,collections
d=json.load(sys.stdin); s=collections.Counter(r['serial_number'] for r in d)
print('entries', len(d), '| unique serials', len(s),
      '| twice', sum(1 for v in s.values() if v==2), '| once', sum(1 for v in s.values() if v==1))
print('newest not_before:', max(r['not_before'] for r in d)[:10])"
entries 64 | unique serials 36 | twice 28 | once 8
newest not_before: 2026-09-08

64 rows, 36 certificates. Saying "64 certificates were issued" would be counting the same
thing twice. (These numbers are a snapshot: the index is fed continuously, and the same
query at another hour can move by a row.)

The second point, and the real one: the certificate that reaches my browser is not in this
list. The newest record the index knows for my domain is dated 8 September — two months
before my certificate was issued on 10 November. This query covers subdomains too: the 64
rows it returns include the names www., mta-sts. and u.. So this is not a miss caused
by scoping the search too narrowly.

I have to pause here: older records from Google Trust Services are in this index. So the
problem is not "the index doesn't know my CA at all." At some point, in the autumn, the
chain broke.

I could not establish the reason. The first explanation that came to mind — the index not
following the new tiled API — is undercut by my own certificate's second receipt: the first
receipt comes from a classic RFC 6962 log, DigiCert's Wyvern2027h1, and that log can be
read over the interface everyone has used for years. I read it myself a few sections from
now. So the precertificate was also written somewhere the index could reach without a line
of new code. That leaves other, untested possibilities: a backlog in ingestion, or the
2027h1 shards not being in the set the index watches. The page listing which logs crt.sh
scans would not open on either of two attempts, at 45 and 120 seconds, so I verified
neither. What the measurement shows is one sentence: my certificate has receipts, and the
index does not know it.

Reading the log without a middleman

Those eight bytes inside the second receipt are not arbitrary; the static-ct-api
specification defines them. The leaf_index extension: type number 0, length 5, value "a
big-endian unsigned 40-bit integer" "specifying the 0-based index of the included entry in
the log." The specification also states that the total length of an extensions field
containing only a leaf_index extension is exactly 8 bytes. My field is exactly 8 bytes.

$ python3 - <<'PY'
import binascii
ext = binascii.unhexlify('0000050021288161')
t  = ext[0]; ln = int.from_bytes(ext[1:3],'big'); val = ext[3:3+ln]
print('extension_type:', t, '| length:', ln, '| leaf_index:', int.from_bytes(val,'big'))
PY
extension_type: 0 | length: 5 | leaf_index: 556302689

The log had told me where my certificate sits in its own tree. First I looked at whether the
tree had reached that line. Tiled logs publish a signed checkpoint; static-ct-api does not
define its body itself and defers to the tlog-checkpoint specification. The first line is
the log's origin, the second the number of leaves in the tree, the third the root hash, and
the signatures follow:

$ curl -s https://tuscolo2027h1.skylight.geomys.org/checkpoint | head -3
tuscolo2027h1.sunlight.geomys.org
1003722271
d6+lUdXLP6B7rtTGZ9Rd6CxBRhXHuWWZ9oZ0yneLj6I=

The one-letter difference between skylight in the address and sunlight in the output is
not a typo: the specification requires the origin line to carry the log's submission
prefix, while the files are served under the monitoring prefix. Chrome's list gives two
separate addresses for this log accordingly.

Just over a billion leaves, and my line is 556,302,689. Inside the tree. But is my
certificate really on that line? The practical side of tiled logs is this: they serve the
data as static file tiles. You divide the index by 256, split the tile number into
three-digit groups, prefix every group but the last with x, and download the file.

$ python3 -c "i=556302689; print('tile', i//256, '| offset', i%256)"
tile 2173057 | offset 97

$ curl -s -D - -A 'ct-audit ([email protected])' \
    https://tuscolo2027h1.skylight.geomys.org/tile/data/x002/x173/057 \
    -o tile.bin | grep -i -E 'HTTP/|content-encoding|cache-control'
HTTP/2 200
cache-control: public, max-age=604800, immutable
content-encoding: gzip

This log does not let User-Agent pass empty: with a plain curl my second attempt
returned HTTP/2 429 and the header skylight-rate-limited: Please add an email address to
your User-Agent.
Free, then, but not without cost — you hand your identity to the log
operator.

152,616 bytes came down, expanded to 424,015 bytes, and held exactly 256 entries. (When the
specification says "Full tiles MUST be exactly 256 hashes wide" it is describing hash tiles;
it gives no count for data tiles, only that their entries match the corresponding level-0
tile. The 256 follows from that, and my tile did carry exactly 256 entries.) The entry
format rests on RFC 6962's TimestampedEntry structure: timestamp, entry type, then for
precertificate entries a 32-byte issuer_key_hash and the TBS certificate, extensions, the
precertificate proper, and finally the chain's fingerprints. Skip those 32 bytes and your
parser desyncs on the first entry. I wrote entry 97 to disk and handed it to openssl:

$ openssl x509 -inform DER -in entry97.der -noout -serial -subject -issuer -dates
serial=91AAE5593BCCBB2B0E1532C7B22B9BAF
subject=CN=mustafaerbay.com.tr
issuer=C=US, O=Google Trust Services, CN=WE1
notBefore=Nov 10 03:54:56 2026 GMT
notAfter=Feb  8 04:53:30 2027 GMT

The serial number matches exactly. The entry's timestamp is 1794286497444, that is
10 November 04:54:57.444 UTC — the same millisecond written on the receipt. There are two
fingerprints in the chain.

What this proves needs writing down precisely: this is the log's own served copy. I
downloaded the tile and pulled my certificate out of it, but I did not fetch the hash tiles
and recompute the root, and I did not verify the checkpoint's signature. So what I hold is
not a cryptographic inclusion proof; it is the log saying "this is what sits on that line,"
and the bytes on that line turning out to be my certificate. The line number, too, came from
the log's own receipt.

Diagram

The second receipt's log says the same thing, but won't show it

I could not take the same step on the classic log, and the reason is structural: RFC 6962
receipts carry no leaf index. What I could get from DigiCert's log was the signed head of
the tree:

$ curl -s https://wyvern.ct.digicert.com/2027h1/ct/v1/get-sth
{"tree_size":968529050,"timestamp":1796536433527,
 "sha256_root_hash":"A1VuQyBBBxtIf9ApC9TS+5GOOepa4YdBRieDO7CEd9s=", ...}

968,529,050 leaves, stamped 6 December 05:53:53 UTC. The log is running, it signed my
receipt on 10 November, but finding which line holds my certificate requires scanning the
tree or asking it "where is this hash." The difference between classic and tiled logs is not
merely the file format; one tells me my own line number and the other does not.

Who stops the writing? Nobody

Every issued certificate gets recorded — but who limits issuance for my domain? There is
an answer and its name is CAA. You put a record in your domain's DNS saying "only these
authorities may issue for me," and compliant authorities check it before issuing.

$ for d in mustafaerbay.com.tr www.mustafaerbay.com.tr mta-sts.mustafaerbay.com.tr com.tr tr; do
    printf '%-32s' "$d"; r=$(dig +short CAA "$d" @1.1.1.1); [ -z "$r" ] && echo "(NO CAA record)" || echo "$r"
  done
mustafaerbay.com.tr             (NO CAA record)
www.mustafaerbay.com.tr         (NO CAA record)
mta-sts.mustafaerbay.com.tr     (NO CAA record)
com.tr                          (NO CAA record)
tr                              (NO CAA record)

Five levels, zero records. My domain has two authoritative nameservers —
janet.ns.cloudflare.com and rodney.ns.cloudflare.com — and asking them directly returns
empty as well.

RFC 8659 states plainly what happens in this case. The rule only operates when a CAA record
set exists: before issuing, a compliant authority must search for the relevant RRset, and
if the set exists then "a CA MUST NOT issue a certificate unless the CA determines that
either (1) the certificate request is consistent with the applicable CAA RRset or (2) an
exception specified in the relevant CP or CPS applies." With no records, the search comes
back empty and the rule never engages. So today, for my domain, every compliant certificate
authority is technically equally entitled. The log tells me who issued; I have no sentence
telling anyone who may not.

I would have liked to add a record right away and end the article there, but Cloudflare's
documentation slowed me down, and rightly so: "If you have CAA records on your domain, they
must permit the certificate authority (CA) that Cloudflare uses." The example output in that
document shows four authorities across eight lines, because each is written as both issue
and issuewild. That detail lands squarely on my case: my edge certificate carries the
wildcard name *.mustafaerbay.com.tr, so writing only issue and forgetting issuewild
would break the renewal ninety days from now. The document also says the list is not closed:
"This list is not exhaustive, and other CAs might be added or removed for operational
reasons."

The reference page today gives four authorities — Let's Encrypt (letsencrypt.org), Google
Trust Services (pki.goog; cansignhttpexchanges=yes), SSL.com (ssl.com) and, only for
backup certificates, Sectigo (sectigo.com) — and it also states the easy part: if
Cloudflare is your DNS provider, it adds the CAA records on your behalf. So in my case the
right move is not to hand-write eight lines, but to close this door through the provider's
own mechanism and then verify the result with dig.

This is a pattern that has crossed my path on this blog before:
writing HSTS in a header was not being on the preload list,
an MTA-STS policy that was enforce on paper went three months with nobody able to read it,
and now a certificate with a log record does not appear in the index. In all three the
intent is right and the mechanism is incomplete.

Six steps for your own domain

All reads, none of them changes anything:

  1. Get the live certificate's serial. Pull it with openssl s_client, read it with -serial -dates. Hold the identity of the thing your browser sees; starting the search with a serial rather than a domain name shows the difference immediately.
  2. Count the receipts and check the logs' states. Count the Signed Certificate Timestamp blocks in the openssl x509 -text output and match the Log IDs against Chrome's list. The count alone is not enough: at least one receipt must come from a Qualified/Usable/ReadOnly log, and at least two must come from distinct operators.
  3. Read the list from the right file. log_list.json is the list Chrome enforces; all_logs_list.json also contains rejected and pending logs. Do not mix the two when comparing numbers.
  4. Ask the index by serial number. crt.sh/?serial=...&output=json. If it comes back empty, your index's coverage is incomplete — which means you thought you had monitoring in place and you did not.
  5. Put whatever monitor you use through the same test. Whichever service you move to, make the first query your live certificate's serial number. If it cannot find that, its coverage is incomplete and it deserves no more trust than crt.sh got. Testing coverage with your own certificate is cheaper than reading the provider's coverage promise.
  6. Look at CAA. dig +short CAA for the domain and the levels above it. If it is empty, first learn who manages your edge certificate; if you use a wildcard name you need issuewild as much as issue. If your DNS already lives at that provider, use its mechanism rather than hand-writing the record.

Limits of the measurement

One domain, one day, one machine. On the index side I tried two query forms (serial and
identity); because the page listing crt.sh's scanning coverage timed out on both attempts,
I did not prove the cause of the gap, only measured that it exists. I did no inclusion proof
on the tiled log and did not verify the checkpoint signature; on the classic log I did not
attempt a line search at all. I parsed the tile with a short decoder of my own; its
correctness rests on the serial number, the dates and the timestamp matching independently.
The crt.sh numbers are a snapshot. Finally, the certificate the index shows for the
mta-sts subdomain expires on 7 December and that address currently answers no TLS at all;
that is another article's subject.

Closing

When using an audit tool, the question we usually ask is "what does it show." What I learned
today is that the real question is "what can it see." The index said nothing false; it said
what it had. My mistake was taking its coverage to be the log's coverage — when one is a
cryptographic commitment and the other a volunteer service. The browser never confuses the
two: it looks at the receipt, verifies the signature, moves on.

The real promise of the transparency log was never "nobody can issue a certificate without
telling you"; it was "everyone who issues leaves a trace." The trace really was left — it
sits on line 556,302,689 of a tree with a billion leaves, and I read that line on my own
machine. But the day I delegate reading the trace to somebody else's search box, I also
delegate the assurance the log gives me to that box's coverage. On top of which, I never set
up the side that limits who may write: my log is full and my door is open.

Official Sources

  • RFC 8659 — DNS Certification Authority Authorization (CAA) Resource Record — Standards Track, November 2019, obsoletes RFC 6844. The authority's obligation is in section 3: "Before issuing a certificate, a compliant CA MUST check for publication of a Relevant RRset. If such an RRset exists, a CA MUST NOT issue a certificate unless the CA determines that either (1) the certificate request is consistent with the applicable CAA RRset or (2) an exception specified in the relevant CP or CPS applies." That the obligation is conditioned on "If such an RRset exists" is what makes the rule inert on a domain with no records; separately, for a set that exists but carries no Property Tag restricting issuance, the same section says "CAA does not restrict issuance". Section 1 says CAA conformance is "a necessary, but not sufficient, condition" for issuing a certificate.
  • RFC 6962 — Certificate Transparency — the source of the entry format read in this article. The PreCert structure in section 3.4 consists of opaque issuer_key_hash[32] followed by TBSCertificate tbs_certificate, and the reason for issuer_key_hash is there too: "This is needed to bind the issuer to the final certificate." The ct/v1/get-sth endpoint that returns a classic log's signed tree head, and the extensions field of receipts (SCTs), are also defined in this RFC.
  • Static Certificate Transparency API (c2sp.org/static-ct-api) — formerly the "Sunlight API". The leaf_index(0) extension: extension_data is a LeafIndex, "a big-endian unsigned 40-bit integer" "specifying the 0-based index of the included entry in the log"; and "The total length of an extensions field containing only a leaf_index extension is 8 bytes". Data tiles live under <monitoring prefix>/tile/data/<N>[.p/<W>]; the index is split into three-digit elements and all but the last are prefixed with x (the specification's example: "index 1234067 will be encoded as x001/x234/067"). The sentence "Full tiles MUST be exactly 256 hashes wide, or 8,192 bytes" is in the Merkle tree section and concerns hash tiles; the only statement given for data tiles is "The entries in a data tile match the entries in the corresponding 'level 0' tile". The origin rule: "the origin line MUST be the submission prefix of the log as a schema-less URL with no trailing slashes".
  • tlog-checkpoint (c2sp.org/tlog-checkpoint) — static-ct-api does not define the checkpoint body and defers to this specification; the line order (origin, tree size, root hash) and the signature block are defined here.
  • Cloudflare SSL documentation — CAA records — "If you have CAA records on your domain, they must permit the certificate authority (CA) that Cloudflare uses." The document's dig example.com caa +short example shows four authorities across eight lines: both 0 issue and 0 issuewild for each CA (pki.goog; cansignhttpexchanges=yes, letsencrypt.org, ssl.com, sectigo.com). The warning in full: "This list is not exhaustive, and other CAs might be added or removed for operational reasons."
  • Cloudflare SSL documentation — Certificate authorities — the table of authorities used for edge certificates and their CAA values: Let's Encrypt letsencrypt.org, Google Trust Services pki.goog; cansignhttpexchanges=yes, SSL.com ssl.com, Sectigo sectigo.com (backup certificates only). Also: "If you are using Cloudflare as your DNS provider, then the CAA records will be added on your behalf."
📰 Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.