Parameter | Required? | Description |
---|---|---|
apiName | Required | The name of your new API. |
apiIdentifier | Required | The unique identifier for your API. This will be used as your token audience. |
credentialName | Optional | The name for your public key. |
pem | Required | Public key encoded in PEM format. |
alg | Required | The encryption algorithm must be either RSA-OAEP-256 , RSA-OAEP-384 , or RSA-OAEP-512 . |
kid | Optional | The identifier used to write to the kid header in your JWE token. This can be used to identify the key used for encryption during key rotation. |
id
property which uniquely identifies the resource server. The response also contains a generated thumbprint_sha256
field that can be used to identify the credential. Auth0 will not return key material after initial creation (in this case, your PEM).
There are many ways to generate the thumbprint_sha256
. For more information, see the RFC 8705 OAuth 2.0 Mutual-TLS Client Authentication and Certificate-Bound Access Tokens.
To ensure that you generated the correct thumbprint_sha256
, you can use the following Node.js code sample to extract the thumbprint: