Credentials and keys
Shared secrets and key pairs, what a digital signature proves, how keys are stored and published, how certificates bind keys to names, and the XML and JOSE formats that carry signed identity data.
Start with Secrets and key pairs
- Secrets and key pairsDistinguish identifiers from credentials, compare shared secrets with public and private key pairs, and see how a challenge proves possession of a key.
- Digital signaturesFollow a signed access token from signing to verification, and learn what a signature shows, what it does not, and what a verifier must decide for itself.
- Storing and using keysCompare where private keys can live, limit what each key can do, publish public keys with key identifiers, and replace a key without breaking verifiers.
- What a certificate saysRead a decoded certificate field by field and understand how it binds a public key to names and permitted uses, and what it does not claim.
- Certificate authorities and chainsFollow a certificate chain from a website to a trusted root, and learn how trust stores, intermediate CAs, constraints, transparency logs, and private PKI fit together.
- Validating a certificateWork through the checks a client performs on a certificate, read common validation failures, and see why disabling verification is not a fix.
- XML and XML signatures for identityRead elements, attributes and namespaces, follow how an XML signature protects one referenced element, and see why canonicalization, parser settings and signature wrapping matter for SAML.
JOSE: signed and encrypted tokens RFC 7515-7518
JSON Web Tokens taken apart: compact serialization, registered claims, signing algorithms, key sets and key IDs, and encryption with JWE.
- Inside a JWT: JWS and compact serializationTake a real compact JWT apart: base64url without padding, the header parameters, the registered claims and NumericDate, the signing input, and why decoding is not validating.
- Choosing and enforcing algorithmsWhy the receiver, not the token, chooses the algorithm: the HS256, RS256, PS256, ES256 and EdDSA families, the none algorithm and algorithm confusion, allowlists, and changing algorithms safely.
- JWKs, key sets, and key IDsRead a JWK and its members, pick a key within a trusted set by kid or thumbprint, recognize the jwk, jku, x5u and x5c header traps, and understand bounded cache refresh and rollover.
- Encrypting tokens with JWEAuthenticated and hybrid encryption, the five parts of a compact JWE, key-management versus content algorithms, protected-header integrity, algorithm choices, and why decryption is not identity.