Access Token Credentials
When registering a new access token (Service Account or Personal Access Token), you need to link a public private key pair to your token. This is done by passing a public key with the API call.
See Generate a Key Pair for information about how to generate a key pair.
Public Key Format
Public Keys need to be formated with PEM encoding.
PEM Encoding
PEM encoding base64 encodes the public key data and places it between a header and footer. The header and footer can be slightly different depending on the crypto library you use, but it will always have the same basic format:
For example
Converting from raw to PEM
Some cyrpto libraries do not support PEM format. If your library supports exporting to SPKI you can export the key into SPKI format, base64 encode that value, and place it inside the header and footer.
Last updated