Support from the community to continue maintaining and improving this module is welcome. If you find the module useful, please consider supporting the project by becoming a sponsor.
JSON Web Key (JWK). "RSA", "EC", "OKP", and "oct" key types are supported.
See
• kty: string
JWK "kty" (Key Type) Parameter
• Optional
alg: string
JWK "alg" (Algorithm) Parameter
See
• Optional
crv: string
- EC JWK "crv" (Curve) Parameter
- OKP JWK "crv" (The Subtype of Key Pair) Parameter
• Optional
d: string
- Private RSA JWK "d" (Private Exponent) Parameter
- Private EC JWK "d" (ECC Private Key) Parameter
- Private OKP JWK "d" (The Private Key) Parameter
• Optional
dp: string
Private RSA JWK "dp" (First Factor CRT Exponent) Parameter
• Optional
dq: string
Private RSA JWK "dq" (Second Factor CRT Exponent) Parameter
• Optional
e: string
RSA JWK "e" (Exponent) Parameter
• Optional
ext: boolean
JWK "ext" (Extractable) Parameter
• Optional
k: string
Oct JWK "k" (Key Value) Parameter
• Optional
key_ops: string
[]
JWK "key_ops" (Key Operations) Parameter
• Optional
kid: string
JWK "kid" (Key ID) Parameter
• Optional
n: string
RSA JWK "n" (Modulus) Parameter
• Optional
oth: { d?
: string
; r?
: string
; t?
: string
}[]
Private RSA JWK "oth" (Other Primes Info) Parameter
This parameter is not supported
• Optional
p: string
Private RSA JWK "p" (First Prime Factor) Parameter
• Optional
q: string
Private RSA JWK "q" (Second Prime Factor) Parameter
• Optional
qi: string
Private RSA JWK "qi" (First CRT Coefficient) Parameter
• Optional
use: string
JWK "use" (Public Key Use) Parameter
• Optional
x: string
- EC JWK "x" (X Coordinate) Parameter
- OKP JWK "x" (The public key) Parameter
• Optional
x5c: string
[]
JWK "x5c" (X.509 Certificate Chain) Parameter
• Optional
x5t: string
JWK "x5t" (X.509 Certificate SHA-1 Thumbprint) Parameter
• Optional
x5t#S256: string
JWK "x5t#S256" (X.509 Certificate SHA-256 Thumbprint) Parameter
• Optional
x5u: string
JWK "x5u" (X.509 URL) Parameter
• Optional
y: string
EC JWK "y" (Y Coordinate) Parameter