key exchange:
purpose of delegation:
metaphor: stamped letters
a trusted root office stamps a letter authorizing a regional office
the regional office stamps letters for businesses
each letter carries the previous office's stamp, forming a chain back to the trusted root
verification is checking each stamp step by step until the trusted office is reached
default: trust on first use (tofu)
~/.ssh/known_hosts
enterprise alternative: ssh ca (openssh 5.4+)
metaphor: personal ledger vs organizational notary
tofu: you write down the server's "signature" the first time you meet it
ssh ca: instead of memorizing every signature, you trust a notary's seal on each one
-----begin/end-----
conversions:
pem to der: openssl x509 -in cert.pem -out cert.der -outform der
der to pem: openssl x509 -in cert.der -inform der -out cert.pem
pem + key to pkcs#12: openssl pkcs12 -export -inkey key.pem -in cert.pem -certfile chain.pem -out bundle.p12
host example hostname example.com user myuser identityfile ~/.ssh/server.%r identitiesonly yes
difference between encryption in transit and at rest
expired certificate
curl: (60)
letsencrypt renewal failure
certbot renew
fails, no updated certincomplete chain
system clock skew
hostname mismatch
curl: (51)
expired intermediate
ocsp stapling absent or stale
ssh host key changed
remote host identification has changed!
known_hosts
if validssh unknown host