Get JWKS for Key Rotation Policy

GET {{authPath}}/environments/{{envID}}/keyRotationPolicies/{{krpID}}/jwks

The GET /environments/{envID}/keyRotationPolicies/{krpID}/jwks endpoint fetches the public keys of all KRP keys attached to a KRP in JWKS format. For more information, see RFC 7517.

The following parameters are shown for each key:

  • kty

The is the key type, which identifies the cryptographic algorithm family used with the key. Options are RSA. The kty parameter of enclosing JWK values will be consistent with the algorithm parameter of the KrpKey.

  • e

This is the RSA public exponent parameter, which is used in the RSA Key blinding operation.

  • kid

This is the key ID parameter, which is used to match a corresponding kid key value in the JWT token to validate the requestor and grant access to the specified API endpoint. The kid parameter of enclosing JWK values will refer to the UUID assigned to KrpKeys at creation time. These UUIDs are Type 1 (time-based) and therefore denote a chronological rotation order.

  • use

This is the public key use parameter, which identifies the intended use of the public key. Options are sig (signature) and enc (encryption). The use parameter of enclosing JWK values must be consistent with UsageType assigned to the parent KRP.

  • n

This is the RSA modulus parameter, which is used in the RSA Key blinding operation.

  • x5t

This is an X.509 certificate SHA-1 thumbprint parameter, which is a base64url-encoded SHA-1 thumbprint of the DER encoding of an X.509 certificate.

  • x5c

This is an X.509 certificate chain parameter, which is a chain of one or more PKIX certificates.

RESPONSES

status: OK

{"keys":[{"kty":"RSA","e":"AQAB","use":"sig","kid":"default","x5c":["MIIDLDCCAhSgAwIBAgIGAWW17v5GMA0GCSqGSIb3DQEBCwUAMFcxCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDTzEPMA0GA1UEBxMGRGVudmVyMRUwEwYDVQQKEwxQaW5nSWRlbnRpdHkxEzARBgNVBAMTCnByb2Qtb2F1dGgwHhcNMTgwOTA3MjEyNzQzWhcNMjMwOTA2MjEyNzQzWjBXMQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ08xDzANBgNVBAcTBkRlbnZlcjEVMBMGA1UEChMMUGluZ0lkZW50aXR5MRMwEQYDVQQDEwpwcm9kLW9hdXRoMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQE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