Concepts / Encryption and certificates

Encryption and certificates

Self-signed certificate

Also called certificate pinning, trust on first use, TOFU, fingerprint

A certificate whose issuer is its own subject: nobody vouches for it but itself.

A self-signed certificate vouches for itself
A self-signed certificate vouches for itself

A normal certificate is signed by a CA the client already trusts. A self-signed one names itself as issuer, so the only safe way to trust it is to check its fingerprint some other way and pin it.

A self-signed certificate is signed with its own key: issuer and subject are the same, so no CA vouches for it. Devices make one for names no public CA signs. Clients warn about it; trusting it means pinning that exact certificate after checking its SHA-256 fingerprint against one read outside the network path. A root CA's certificate is self-signed too, but trust stores already carry it.

See it on real machines

Read next

Learn it on real machines.

Every lab is a small network of real Linux machines in your browser. Sign in with Google or email to start.

Start this lab