For the complete documentation index, see llms.txt. This page is also available as Markdown.

Generating DOA Keys

In order to use DOA, you need to pass the base64 encoded private key. Here is how you generate your private key:

Generate the PEM Key

Using Passport SDK

Install passport-scope-cli

npm install -g passport-scope-cli

Run the generate key command

passport-scope generate-keys --name passport

Post this, your private key file will be created in the same directory with name passport_priv.der

Using OpenSSL

openssl ecparam -name prime256v1 -genkey -noout -out private_key.pem
openssl pkcs8 -topk8 -inform PEM -outform DER -in private_key.pem -out passport_priv.der -nocrypt

Base64 encode the Key

base64 -i passport_priv.der -o pasport_priv_base64.txt

And you are done, you may copy this value directly to your environment variable

Last updated