Public-key cryptography

Understand certificates and TLS

See how certificate chains bind public keys to names and why hostname, validity, chain, and trust-anchor verification must remain enabled.

8 minute lesson

~~~

A TLS certificate connects a public key to an identity such as a domain name through a chain of signatures.

The client verifies the hostname, validity period, key usage, certificate chain, and trusted root. Disabling verification turns encryption into a connection with an unknown party. Automate renewal and monitor expiry.

A developer disables certificate verification to fix a staging connection error. Traffic stays encrypted, but the client will now establish that encrypted connection with an attacker presenting any certificate.

Private certificate authorities and local test certificates need deliberate trust configuration. A global verification bypass turns one environment problem into a system-wide identity failure.

Inspect a real test certificate and save its names, validity period, key usage, issuer chain, and trusted root. Connect with the correct hostname and trust store. Then test a wrong hostname, expired certificate, or untrusted root and prove verification fails without a global bypass.

Lesson completed

Take this course offline

Get every free book and course as PDF and EPUB files.

Get the download library →