Bitpath

Boss lesson · Unit 01

Who are you talking to

Certificates, the man in the middle and what a padlock means

13 exercisesabout 3 min

What you practise

  • Certificates and authorities, what the handshake proves, the man-in-the-middle and why warnings matter, HSTS, what HTTPS does not hide

Try a question from this lesson

Pick one

You join a café's Wi-Fi and open a site over plain HTTP. Every packet passes through the café's router. What can whoever runs that router do?

The ideas

Concept cards are short on purpose. In the app they appear between questions, after you have met the idea.

Concept

Certificates

A certificate says "this public key belongs to bank.example" and is signed by a certificate authority (CA).

Your browser ships with a list of CAs it trusts. It checks the signature chain, the hostname and the dates. A swapped key has no valid certificate for that name, so the browser stops and warns you.

Root CA        (built into your browser)
   | signs
Intermediate CA
   | signs
bank.example + its public key

Concept

HSTS: never fall back to HTTP

When a visit starts on plain HTTP (an old link, a typed address), the site answers with a redirect to HTTPS. An attacker in the middle can swallow that redirect and keep you on HTTP.

The HSTS response header tells the browser: for this long, only ever use HTTPS for this site. It is one header, shown here on two lines.

Strict-Transport-Security:
  max-age=31536000; includeSubDomains

10 more exercises in the app

  • 4× multiple choice
  • 1× order the lines
  • 1× fill the blanks
  • 2× true or false
  • 1× type the answer
  • 1× match the pairs

Bitpath is an iOS app in development. Join the waitlist and you get one email when it is ready to try.

One email when Bitpath is ready to try. Nothing else. Privacy