Overview
The enrollment process consists of two main components:- Step 1: Obtain your Private Key
- Step 2: Build an endpoint for JWT token generation
- Step 3: Passkey enrollment via OwnID SDK
Step 1 - Obtaining the Private Key
To generate the required RSA private key for JWT signing, follow these steps in the OwnID Console:1
Navigate to Security Settings
In your OwnID Console, go to Integration > Security section for your application.
2
Generate Signing Key
Under the Signing Key section, click the “Generate a new key” button.
Generating a new RSA key pair will immediately invalidate any existing key. All requests currently using the old key will begin to return errors.
3
Confirm Key Generation
A confirmation dialog will appear warning about key invalidation. Click “Continue” to proceed with generating the new key pair.
4
Copy Private Key
Once generated, a modal will display your new RSA private key. Copy the entire private key including the
-----BEGIN RSA PRIVATE KEY-----
and -----END RSA PRIVATE KEY-----
markers.This is the only time you’ll be able to view the private key. Store it securely!
Step 2 - Backend Implementation
Implement a backend endpoint to generate a signed JWT enrollment token that authorizes the passkey enrollment session.Unique token identifier
Token issued at timestamp (Unix timestamp)
Token expiration timestamp (15 minutes from iat)
Issuer (website URL)
Audience (same as issuer)
Subject (user email with “Email:” prefix)
Session creation authorization details
Step 3 - Frontend Implementation
- Ensure OwnID SDK is properly initialized with your application’s configuration before calling the enrollment function.
- We recommend you to trigger the Passkeys enrollment UI on the next page load after login.