Google is using clever math to quantum-proof HTTPS certificates

I miss when Ars would give an explanation for how tech like this works as part of the article.
Emphasis on "as part of the article" vs digging through links and repeating your research.
People implying the article doesn't explain stuff like Merkle Trees and then providing a link to a Wikipedia page when the post spends 2 grafs describing Merkle Trees and provides the very same link.
Sorry, there are graphs in this article? I checked on desktop and there aren't any there either.

Questions I had after reading the article:
  • How much data must be transferred for this to work? Providing the Git commit hash without the objects they represent is useless. Here: be05d659a2c3662e8a6a909d4f769f9ead679fc5. Good luck reconstructing my repo. But that seems consistent with the claim in the headline.
  • What do these new certs/chains look like compared to what we have now? Historically we've had intermediate CAs, is that still true?
  • How does the data get securely distributed?
  • Aren't distributed ledgers/CT logs huge? Are we outsourcing cert validation to third parties? That can't be right? Though this is Google…
Etc.

I'll admit, now that I've seen the Wikipedia picture (the one outside the article) and had a second read, I think I have a handle on some of those questions but still not all of them.

I guess I'll have to find the spec and figure it out for myself when I have time.
 
Upvote
-2 (11 / -13)
This is not correct. 64 bytes is a single ECC signature (ECDSA on P-256). Certificates are like one and a half kilobytes nowadays. E.g. server cert for arstechnica.com is 1496 bytes, and it's one RSA signature (that is long), three ECDSA (ECC) signatures, and one RSA public key inside.



No. It'll be one public key (say, EC or RSA) and multiple signatures, but in most cases fewer than six. E.g. one "common" signature for the certificate itself and two or three embedded signatures for so-called SCTs, which are timestamps from Certificate Transparency logs.



It might be. But we don't know yet.



It's correct only for the typical signature size (quantum-resistant), not for the entire certificate, as the latter will be longer. Still, it's correct to say that typical quantum-resistant keys are much longer then ECC (but not RSA), so the proposed hash-tree mechanism promises general advantage here.
Came here with the same complaint. The idea that the X.509 certificate is only 64 bytes is nonsense, when as you said the signature (and public component) for 256 bit ECC is already 64 bytes - and X.509 is not a compact format! RSA certificates are larger still, there's a clue in the algorithm name for the length of signatures and public keys - e.g. 2048, 4096 where these are the lengths in bits.

The article further complicates matters by mentioning ML-DSA as the quantum safe signature algorithm. The signature size for ML-DSA-44 (the weakest variant) is 2420 bytes.

In fact, Google's initiative uses Merkel Tree Certificates to reduce the overhead of chains of certificates, particularly by the use of signatureless certificates - though even these are expected to be at least 700 bytes in size.

The trust negotiations involved in using signatureless certificates are complicated :)
 
Upvote
26 (27 / -1)

drfisheye

Ars Tribunus Militum
2,585
Subscriptor
Are we outsourcing cert validation to third parties? That can't be right?
It always has been outsourced to Certificate Authorities. Browsers and OS include the root certificates of those CA's, so Google, Apple and Microsoft can choose which CA's they trust. But from then on, we need to trust the CA's. The CA's would control the 'issuance logs', or 'ledgers'.
 
Upvote
30 (31 / -1)

Starouscz

Ars Scholae Palatinae
945
Subscriptor
When I see a new "security" or "efficiency" standard proposed by Google, I always think not that they're looking out for us, but that they're embracing and extending and hiding behind security theater. Am I the only one?

Edit: oh, it's Google and Cloudflare now. How long until Cloudflare turns from a nice company offering a ton of useful free services into a monopolist everyone hates but can't avoid, like Google did?
it is directly related to their cost, so in this case that is what they will optimize for. in this case probably not the worst outcome
 
Upvote
3 (4 / -1)
It always has been outsourced to Certificate Authorities. Browsers and OS include the root certificates of those CA's, so Google, Apple and Microsoft can choose which CA's they trust. But from then on, we need to trust the CA's. The CA's would control the 'issuance logs', or 'ledgers'.
Validation of the certificates certainly hasn't.

ETA: keys are validated by CA's, who then sign an attestation of validity (aka a certificate). Relying parties then validate the chain of certificates to authorities they trust (the roots)

Certificate transparency is an acknowledgement that there are too many roots for them all to be reliable, so they publish every certificate ever made so that certificate issuees can ensure there aren't fake ones out there and relying parties can see that their cert is issued by a CA playing by the rules. But that requires more than 64 bytes of network data to check unless you're already running a log yourself (and the CT logs are so huge that running a log is not trivial)
 
Last edited:
Upvote
5 (5 / 0)
Post content hidden for low score. Show…

Rirere

Ars Centurion
377
Subscriptor++
Quantum computers haven't even proven they work or do anything at all.

Cryptography is a world where threats move fast and defenses (user-driven updates and behavioral changes) move glacially slow.

Getting ahead of where we know technology will be- even if that's a year, five years, ten years out- is imperative when we're talking about the basic underpinnings of modern online society (which is now a nontrivial part of, well, society).
 
Upvote
43 (43 / 0)
Post content hidden for low score. Show…
Post content hidden for low score. Show…
Post content hidden for low score. Show…

stayhomeeattoast

Smack-Fu Master, in training
4
Subscriptor
The problem is many hacker-in-middles are recording top-sensitivity HTTPS data today, for future cracking later.

Some of them even transmit bitcoins, banking data, private medical stuff, or other critically valuable information.

If HTTPS is broken in 10 years from now, your pre-recorded 2025 communications to your online bank/trading/insurance/health/etc today could be cracked in 2035.

By deploying quantum-resistant HTTPS today, the odds of "retroactive hacks" is greatly reduced.

This attack, "store/harvest-now-decrypt-later" (SNDL), is definitely the scariest PQ threat, but addressing it doesn't require the changes that Chrome is talking about here. TLS uses asymmetric crypto long enough to authenticate the server and then agree on a symmetric "session key" that is used for the rest of the connection. Commonly used symmetric key algorithms are already considered quantum-safe. To prevent SNDL, it's enough to use a PQ-safe key exchange algorithm like ML-KEM so that the client and server can securely negotiate that session key.

Luckily, all major browsers have already shipped support for ML-KEM in TLS 1.3. Unfortunately, lots of sites either don't support TLS 1.3 at all, or don't support ML-KEM in particular, so this isn't a totally "solved" problem. Interested sites can protect themselves from SNDL relatively straightforwardly by updating their server configuration though (and should do so ASAP).

This announcement by the Chrome team is specifically trying to make sure websites can still be safe once the quantum computers are here. ML-KEM isn't enough by itself in that world because TLS with current crypto would let the browser securely negotiate a session key... with an attacker who had already been able to impersonate the legit website (by breaking the asymmetric crypto at the beginning).
 
Last edited:
Upvote
18 (18 / 0)

stayhomeeattoast

Smack-Fu Master, in training
4
Subscriptor
(and the CT logs are so huge that running a log is not trivial)
I'm not allowed to post links, evidently, but you should search the web for "You Should Run a Certificate Transparency Log", a blog post by Filippo Valsorda, who currently runs a CT log.

Most relevant paragraph: "Where’s the catch? Well, until recently running a log was a pain, and expensive. I am writing this because as of a few months ago, this has changed!"
 
Upvote
5 (5 / 0)

stayhomeeattoast

Smack-Fu Master, in training
4
Subscriptor
Not clear to me - if this is such a massive step up shouldn't this be open source so other browsers can make use of it?

It's mostly just a specification at this point, but the spec is being worked on in the IETF, in the open, for anyone to contribute to (search for "IETF PLANTS WG"). Chrome is putting a lot of development work into it, but this only works in the long run if there's widescale deployment across browsers.

For Chrome and Cloudflare's proof-of-concept, all of the client-side code is in the open-source Chromium code base. Cloudflare has their MTC code on github (in the "cloudflare/azul" repo).
 
Upvote
16 (16 / 0)

stayhomeeattoast

Smack-Fu Master, in training
4
Subscriptor
Emphasis on "as part of the article" vs digging through links and repeating your research.
...
Questions I had after reading the article:
  • How much data must be transferred for this to work? Providing the Git commit hash without the objects they represent is useless. Here: be05d659a2c3662e8a6a909d4f769f9ead679fc5. Good luck reconstructing my repo. But that seems consistent with the claim in the headline.
  • What do these new certs/chains look like compared to what we have now? Historically we've had intermediate CAs, is that still true?
  • How does the data get securely distributed?
  • Aren't distributed ledgers/CT logs huge? Are we outsourcing cert validation to third parties? That can't be right? Though this is Google…
...
I guess I'll have to find the spec and figure it out for myself when I have time.

It is indeed a shame that it's not in the article, but if you're interested, Cloudflare has a good blog post about this. Search for "Keeping the Internet fast and secure: introducing Merkle Tree Certificates".
 
Upvote
6 (6 / 0)

ItchyPoo

Ars Scholae Palatinae
1,420
Subscriptor
The blocks.

A blockchain is a specific type of append-only ledger with features that make it well-suited for distributed use and decentralized management.

EDIT: Specifically, block chain is designed for ease of use in a system where each block is a group of records that can be added by a different user.
Chef’s kiss!
 
Upvote
-2 (0 / -2)

wagnerrp

Ars Legatus Legionis
33,068
Subscriptor
Symmetric encryption processes aren't impacted nearly as much by quantum computing - they are only weakened instead of broken because Grover's algorithm essentially halves the time to brute force a symmetric encryption which you can solve by doubling the key length. The current approach is to use a 256 bit key instead of a 128 bit key in AES and is considered safe at this point in time.
I assume I'm not telling you anything you don't already know better than I do, but you worded this very badly. Grover's halves the exponent of complexity, not the time itself. It solves in the square root of time, assuming a quantum computer that operates at the same speed as the classical computer it replaces. That's the difference between something that might take minutes to crack, versus something that won't be cracked before the heat death of the universe. But yes, double the key length and you're right back to the same exponent and a functionally impossible task.
 
Upvote
19 (19 / 0)

wagnerrp

Ars Legatus Legionis
33,068
Subscriptor
I'm not allowed to post links, evidently, but you should search the web for "You Should Run a Certificate Transparency Log", a blog post by Filippo Valsorda, who currently runs a CT log.

Most relevant paragraph: "Where’s the catch? Well, until recently running a log was a pain, and expensive. I am writing this because as of a few months ago, this has changed!"
There's a minimum post limit (5-10?) before you're considered "not a bot" and allowed to have links.

https://words.filippo.io/run-sunlight/

I think it should be better phrased "You (as a corporation) Should Run a Certificate Transparency Log". He's describing several TB of storage, and several hundred Mbps of network capacity. That's not something for the typical homelabber to run on a whim.
 
Upvote
20 (20 / 0)
It is indeed a shame that it's not in the article, but if you're interested, Cloudflare has a good blog post about this. Search for "Keeping the Internet fast and secure: introducing Merkle Tree Certificates".
Thank you! I haven't read in depth yet but from my quick skim, this looks like it has the level of detail I was looking for!

For others: https://blog.cloudflare.com/bootstrap-mtc/
 
Upvote
5 (5 / 0)

dangoodin

Ars Tribunus Militum
1,654
Ars Staff
Came here with the same complaint. The idea that the X.509 certificate is only 64 bytes is nonsense, when as you said the signature (and public component) for 256 bit ECC is already 64 bytes - and X.509 is not a compact format! RSA certificates are larger still, there's a clue in the algorithm name for the length of signatures and public keys - e.g. 2048, 4096 where these are the lengths in bits.

The article further complicates matters by mentioning ML-DSA as the quantum safe signature algorithm. The signature size for ML-DSA-44 (the weakest variant) is 2420 bytes.

In fact, Google's initiative uses Merkel Tree Certificates to reduce the overhead of chains of certificates, particularly by the use of signatureless certificates - though even these are expected to be at least 700 bytes in size.

The trust negotiations involved in using signatureless certificates are complicated :)
You're right. Thanks for laying everything out clearly. It really helps when commenters provide details. like these rather than say simply there's stuff wrong. I reconnected with Bas from Cloudflare and got the numbers corrected. My apologies.
 
Upvote
38 (38 / 0)

haydenmuhl

Wise, Aged Ars Veteran
168
Subscriptor
I've read the Merkle tree article on Wikipedia. One thing I still don't quite understand is, how do you validate something against the Merkle tree without validating the whole tree? You take whatever you're validating, hash it, then hash that with each sibling node all the way up the tree. How do you know the sibling hashes are valid?

Also, wouldn't the root hash change any time anything is added to the tree? If they're using a Merkle tree to validate all issued certificates, the root would change any time a CA issues a cert. That seems like an awfully fast moving target to validate against.

To be clear, I'm not saying this doesn't work. I'm certain a whole bunch of other smarter people have figured this all out. I'm just trying to puzzle through it.
 
Upvote
6 (6 / 0)

dangoodin

Ars Tribunus Militum
1,654
Ars Staff
One person (unless there are deleted posts) has said the article has incorrect information. Two people called for them to give examples.

It can be a preference that the article went into more explanatory depth than it did, and not a failure on a commenter's part for not subsequently explaining in their own words.

Personally, I found the exact layout of the Merkle Tree explanation hard to follow on my first read. I thought the first part was handwaving the tech and then talking about a specific application, rather than the "tree head" structure being part of the idea of Merkle Trees in general.

Relevant text from the article:
"
To bypass the bottleneck, companies are turning to Merkle Trees, a data structure that uses cryptographic hashes and other math to verify the contents of large amounts of information using a small fraction of material used in more traditional verification processes in public key infrastructure.

Merkle Tree Certificates, “replace the heavy, serialized chain of signatures found in traditional PKI with compact Merkle Tree proofs,” members of Google’s Chrome Secure Web and Networking Team wrote Friday. “In this model, a Certification Authority (CA) signs a single ‘Tree Head’ representing potentially millions of certificates, and the ‘certificate’ sent to the browser is merely a lightweight proof of inclusion in that tree.”
"
I'll put a longer technical explainer of Merkle Trees on my list for future stories.
 
Upvote
23 (23 / 0)

mg224

Ars Scholae Palatinae
1,391
Subscriptor
I assume I'm not telling you anything you don't already know better than I do, but you worded this very badly. Grover's halves the exponent of complexity, not the time itself. It solves in the square root of time, assuming a quantum computer that operates at the same speed as the classical computer it replaces. That's the difference between something that might take minutes to crack, versus something that won't be cracked before the heat death of the universe. But yes, double the key length and you're right back to the same exponent and a functionally impossible task.

Even that isn’t really accurate.

The current understanding, endorsed by the IETF and NIST, is that practically quantum computers are not going to offer any advantage over classical for brute force search. Classical brute force is embarrassingly parallelizable; Grover is not. Coupled with expectations of cost and speed of quantum hardware there’s no imperative to change symmetric key lengths for quantum reasons.

See e.g.:

https://cacm.acm.org/research/disen...on-realistically-achieving-quantum-advantage/
 
Upvote
13 (13 / 0)
I've read the Merkle tree article on Wikipedia. One thing I still don't quite understand is, how do you validate something against the Merkle tree without validating the whole tree? You take whatever you're validating, hash it, then hash that with each sibling node all the way up the tree. How do you know the sibling hashes are valid?

Also, wouldn't the root hash change any time anything is added to the tree? If they're using a Merkle tree to validate all issued certificates, the root would change any time a CA issues a cert. That seems like an awfully fast moving target to validate against.

To be clear, I'm not saying this doesn't work. I'm certain a whole bunch of other smarter people have figured this all out. I'm just trying to puzzle through it.
From what I gather it's the fact that the lower nodes on the tree are created from the data of higher nodes, hence new entries are automagically aligned thanks to math. As for not having to validate every step, you just need to ensure that for each key X that you validate against a node Y, you can only validate if the value of Y was correctly generated from the combination of A,B,C... before it, so the validation is like, built into the structure of the beast if you will? Maybe I'm wrong, still learning this stuff and trying to find the best way to describe something that involves a lot more math than I have the markdown skills to do on my phone!
 
Upvote
0 (0 / 0)

mg224

Ars Scholae Palatinae
1,391
Subscriptor
I've read the Merkle tree article on Wikipedia. One thing I still don't quite understand is, how do you validate something against the Merkle tree without validating the whole tree? You take whatever you're validating, hash it, then hash that with each sibling node all the way up the tree. How do you know the sibling hashes are valid?

Also, wouldn't the root hash change any time anything is added to the tree? If they're using a Merkle tree to validate all issued certificates, the root would change any time a CA issues a cert. That seems like an awfully fast moving target to validate against.

To be clear, I'm not saying this doesn't work. I'm certain a whole bunch of other smarter people have figured this all out. I'm just trying to puzzle through it.

There are two versions of MTC.

The ones with signatures capture all the info for validating the inclusion at the point in time the certificate was issued. The browser doesn’t need to check anything about the hashes, just use them, and check the resulting signature on the root node with the (trusted) CA key is correct. There is no validation against something ephemeral - it is a self contained proof. It’s not obvious to me how much bandwidth this saves for the certificate exchanges. But it does make for much smaller trees than certificate transparency as currently implemented would need.

Ones without signatures require the browser to have so called landmarks, or snapshot of subtrees at a given moment in time. These do save bandwidth per TLS handshake.
 
Upvote
2 (2 / 0)

mg224

Ars Scholae Palatinae
1,391
Subscriptor
You're right. Thanks for laying everything out clearly. It really helps when commenters provide details. like these rather than say simply there's stuff wrong. I reconnected with Bas from Cloudflare and got the numbers corrected. My apologies.


Glad to see the feedback loop works.

I do have a query as to whether this is really a distributed ledger - AIUI each CA creates its own Merkle tree and has co signers. There isn’t really anything distributed about this where different nodes contribute to the trees. Current CT logs, for example, are not actually distributed. The draft rfc doesn’t mention distributed ledgers at all.
 
Upvote
2 (2 / 0)

tmt

Ars Scholae Palatinae
901
It's mostly just a specification at this point, but the spec is being worked on in the IETF, in the open, for anyone to contribute to (search for "IETF PLANTS WG"). Chrome is putting a lot of development work into it, but this only works in the long run if there's widescale deployment across browsers.

For Chrome and Cloudflare's proof-of-concept, all of the client-side code is in the open-source Chromium code base. Cloudflare has their MTC code on github (in the "cloudflare/azul" repo).

yes, and as of now, Mozilla is not interested, OpenSSL doesn't have an implementation... and on Windows only Edge will have it because it's Chrome

Google cares, because they have an unhealthy obsession about time to first byte
 
Upvote
-17 (1 / -18)

binaryvisions

Ars Praetorian
507
Subscriptor
yes, and as of now, Mozilla is not interested, OpenSSL doesn't have an implementation... and on Windows only Edge will have it because it's Chrome

Google cares, because they have an unhealthy obsession about time to first byte

What does this even mean?

Mozilla regularly waits on new features because they have far more limited dev resources so this isn't surprising for a draft spec. OpenSSL has similar restrictions.

So... what is the problem here? Google is developing something that will ultimately be positive for the speed of connections. And this isn't just a Google thing, the massive size of the signatures in PQ crypto is a huge issue. Cloudflare has published blogs on this as well.

I think Google is very far from a great company, but they're sinking development time into a standard that will benefit everyone. They're a member of the working group and contributing this code to their open source project. So I'm not sure I see why Google should be catching flak over this.
 
Upvote
31 (32 / -1)

haydenmuhl

Wise, Aged Ars Veteran
168
Subscriptor
There are two versions of MTC.

The ones with signatures capture all the info for validating the inclusion at the point in time the certificate was issued. The browser doesn’t need to check anything about the hashes, just use them, and check the resulting signature on the root node with the (trusted) CA key is correct. There is no validation against something ephemeral - it is a self contained proof. It’s not obvious to me how much bandwidth this saves for the certificate exchanges. But it does make for much smaller trees than certificate transparency as currently implemented would need.

Ones without signatures require the browser to have so called landmarks, or snapshot of subtrees at a given moment in time. These do save bandwidth per TLS handshake.
Is this Wikipedia article closer to describing the scheme for validating these certificates?

https://en.wikipedia.org/wiki/Merkle_signature_scheme
 
Upvote
0 (0 / 0)

nxg

Ars Centurion
303
Subscriptor
Emphasis on "as part of the article" vs digging through links and repeating your research.
I think that's unfair.

The article gives a compact description of what a Merkle Tree is, which is just long enough to give me a very rough impression of what it is and why it would make a difference (a tree of hashes of hashes? – I can see how that would help some shapes of problems). And then it gives two (2) links to different blocks of further information, in case I'm curious to learn more, and from which I can find further reading. That's not counting the link to the IETF WG, slightly later on.

That's what links, and references, are for. I don't want that extra information included into the article, where it would simply be padding, that distracted from the news the article is about.

If some quantity of explanatory background were included there, I'd probably ignore it, and go straight to the linked source, if it was at all approachable. This is journalism: I want it to be a pointer to further information, not (in most cases) the information itself.
I'll admit, now that I've seen the Wikipedia picture (the one outside the article) and had a second read, I think I have a handle on some of those questions but still not all of them.
Ie, yes, there is obviously further reading required, if you want to fully understand the details. That doesn't seem outrageous.
 
Upvote
14 (14 / 0)

thinkreal

Ars Scholae Palatinae
722
Big deal, I just ran a sequential integer hash on my entire hard drive and I squeezed it into 1-bit!
Now you need a quantum computer to unzip it.

But I have you pwnd coz I have copied both bit states, so I just need to get that quantum computer before you do then all your data will be mine!
 
Upvote
3 (4 / -1)