Generate Key Pair
Overview
We are using elliptic curve cryptography (ECC) for our encryption. The key pair should be generated using P-256
curve. Ensure the generated key pair is in PEM
format.
The public key should be encoded in SPKI
format, and the private key should be encoded in PKCS#8
format.
Public Key Format
PEM
formatSPKI
encoding
Private Key Format
PEM
formatPKCS#8
encoding
Example Implementation
Here's the example of generating key pair in Typescript.
Output Example
After this section you should have a key pair consisting of :
publicKeyJWKS
privateKey
Ideally, the issuer & verifier should have different key pairs.
Make sure you have both them before proceeding to the next section.
Here's the example for publicKeyJWKS
and privateKey
.
Last updated