Skip to main content
100%

How to create a CSR for the identity service

✓ Published0🌍 Public
CCarlos-Augusto
Last edited Feb 21, 2022
Created on Feb 21, 2022

This example generates a certificate signing request (CSR) for an identity service using an Ed25519 key pair. It demonstrates how to construct a public key with validity dates and a hardware device ID, then output the key as a string. The code uses `GeneratorKeyFactory.getPrivKey` to decode and load the private key from a Base64 string, and `PublicKeyCreationHelpers.getPublicKey2` to build the key with the specified curve, timestamps, and device identifier. The result is printed via `println` after handling success or failure through a `toTry` match.

AI-generated description

Similar vizzes