opyeb jwkslab

jwkslab · Guides

JWKS, JWK and PEM guides

Five articles: JWKS structure and kid selection, JWK↔PEM mapping, RSA key length, EC and OKP curves, and handling an exposed private key

Key selection and JWKS structure, how a JWK maps to PEM, RSA key length, EC and OKP curves, and what to do when a private key is included — the points teams get stuck on most often.

JWKS basics

JWKS basicsJWKS structure and choosing a key by kidThe keys array, kid, alg and use, and rotation traps

Conversion and curves

ConversionHow a JWK maps to PEMWhere n, e, x, y and d go in SPKI and PKCS#8RSARSA key length and choosing algBit length from n, the 2048 line, RS256 and PS256EC · OKPEC and OKP curves — coordinate length and crv namesCoordinate length, per-curve alg, Ed25519 and X25519

Exposure and rotation

Key exposureWhen a private key ends up in a JWKSImpact, immediate steps, rotation order, prevention

Once you have read the guides, diagnose your key set in the tool.

Open the tool