241
submitted 9 months ago by Tibert@jlai.lu to c/technology@lemmy.world

ECH (encrypted client hello) is going or get enabled by default (already existed in a hidden setting) with version 118.

This page about the version explains a bit better ECH https://support.mozilla.org/fr/kb/understand-encrypted-client-hello

Tho it is still a bit confusing.

From what I understand there is the DNS query > the dns servers sends back an IP. This DNS query can be encrypted with DoH (or DoT?, it seems only DoH from the post).

Then there is a handshake with the website where the website informations can be leaked, and that can be encrypted by ECH (if the website supports it).

Then after that there is a tls connexion established between the website and the user.

The part where I'm confused is : can ECH be used without DoH? If yes that would mean that I can use a DoH capable software and not have to configure it into Firefox? (ex: Nextdns + yogadns)

all 19 comments
sorted by: hot top controversial new old
[-] NotSteve_@lemmy.ca 66 points 9 months ago

Encrypted Client Hello is something I'd come up with if I was trying to wildly guess an acronym haha

[-] r00ty@kbin.life 25 points 9 months ago

So, currently when you visit a https secured website the initial request to the server is not encrypted. I suspect the reason for this is that say you run a web server on 1.2.3.4. But there's 4 different websites hosted on that server each with their own SSL/TLS keys.

The server doesn't have a way to know which keys/certificates to use until it knows what site you want to access. So, the initial request is encrypted with a server key, and that server key is fetched via DNS over HTTPS.

Now, here's the question. Why MUST it be DoH? For email, DKIM, SPF and DMARC settings (including public keys) are configured using standard DNS (with DNSSEC). Why do they not allow DNSSEC AND/OR DoH?

Other than that weird limitation, I think it's a good thing.

[-] lemmyvore@feddit.nl 18 points 9 months ago* (last edited 9 months ago)

currently when you visit a https secured website the initial request to the server is not encrypted.

It is encrypted, just not all of it. Back upon a time all of it was encrypted but it created a problem. It was impossible to host multiple different domains on the same IP over HTTPS because chicken and egg: couldn't get the domain from the host header without completing the encryption handshake, but to do that you had to know which domain's certificate to use.

To solve the problem they came up with a TLS extension called SNI that indicates the certificate during handshake, but does so by pulling the domain name out in the clear.

ECH aims to encrypt these parts left in the clear, but can't do it with the TLS certificate (chicken and egg above). So they resorted to the encryption used by DoH instead.

[-] Evilcoleslaw@lemmy.world 10 points 9 months ago* (last edited 9 months ago)

ECH relies on DNS over HTTPS (DoH) for its functionality, using it to fetch the key needed for encryption.

Seems like it's only DoH. Which is kinda lame in a situation like mine where I'm running a DoH proxy (cloudflared), using a PiHole behind that, and pointing my LAN clients at the PiHole using unencrypted DNS. So everything leaving my network is DoH but it's not done directly in the browser, so I can't take advantage of ECH.

[-] epyon22@sh.itjust.works 9 points 9 months ago

Probably because DNS is unencrypted and would allow tampering of the key needed for ECH to work

[-] bjoern_tantau@swg-empire.de 3 points 9 months ago

PiHole doesn't support DoH? I mean as a server? Is there a feature request open for that?

[-] lemann@lemmy.one 3 points 9 months ago

If pihole is still using dnsmasq then I have no idea if DoH will be supported tbh...

[-] lemann@lemmy.one 2 points 9 months ago

TIL about cloudflared being a DoH proxy. Nice, will be looking into this later...

[-] Evilcoleslaw@lemmy.world 1 points 9 months ago

It works well, and it's easy to set up. Previously I had used dnscrypt-proxy since it supports DoH as well.

[-] MonkderZweite@feddit.ch 1 points 9 months ago

You mean, you're running a DoT proxy?

[-] Evilcoleslaw@lemmy.world 1 points 9 months ago* (last edited 9 months ago)

No, DoH (DNS-over-HTTPS). I'd also previously set up a DoT proxy for use on my phone (since Android only supports DoT) but I decided to do something else for that.

[-] Kolanaki@yiffit.net 9 points 9 months ago

So will HTTPS sites actually open in HTTPS now? It's the one thing that annoys the hell out of me since switching back to FF.

[-] Spotlight7573@lemmy.world 10 points 9 months ago
[-] Kolanaki@yiffit.net 3 points 9 months ago* (last edited 9 months ago)

It's already on. The problem is going to a HTTPS site gives the "this site isn't actually secure, would you like to open it in HTTP instead?" And doesn't actually load the sites, which I know work, in HTTPS.

Like this:

This site (SNAP homepage) works in HTTPS just fine on Chrome.

[-] lemann@lemmy.one 7 points 9 months ago

Their webserver is probably misconfigured I think?

Chrome does a bunch of stuff in the background (trying no www, with www, etc) to try and get you to the https website, which firefox doesn't. It's a reason I like firefox as a developer, makes it super obvious when you've messed something up

[-] Tibert@jlai.lu 1 points 9 months ago* (last edited 9 months ago)

I sometimes get this too. It's a bit annoying on mobile (not happening on desktop), but I often just need to reload the page.

this post was submitted on 03 Oct 2023
241 points (97.3% liked)

Technology

55919 readers
2856 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related content.
  3. Be excellent to each another!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, to ask if your bot can be added please contact us.
  9. Check for duplicates before posting, duplicates may be removed

Approved Bots


founded 1 year ago
MODERATORS