How does digirunner store and update its private key? #86
-
|
Hi all, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Hey 👋 thanks for asking! digiRunner manages its JWS (JSON Web Signature) private key through properties-based configuration, which allows you to update keys via startup parameters without modifying code. 🔐 How digiRunner Stores and Uses the JWS Private KeyThe private key used for JWS signing (and token generation) is stored in a KeyStore file (e.g., JKS format) and configured in the Token Keypair Setting section of the digiRunner properties file. Key configuration parameters
🔄 How to Update the Private KeyUpdating the JWS private key is straightforward: 1. Prepare a new KeyStore
2. Update digiRunner’s propertiesPlace the new KeyStore file in your configured directory (e.g., Update the following parameters:
3. Restart digiRunnerThese settings are loaded at startup, so a restart is required for changes to take effect. 🔑 How Clients Retrieve the Public Key (for JWS Verification)digiRunner signs tokens using the private key, and clients verify them using the public key. Clients can retrieve the active public key from: This endpoint returns the currently used public key so clients can verify JWS signatures issued by digiRunner. |
Beta Was this translation helpful? Give feedback.
Hey 👋 thanks for asking!
digiRunner manages its JWS (JSON Web Signature) private key through properties-based configuration, which allows you to update keys via startup parameters without modifying code.
Below is a clear overview of how the private key is stored, configured, and updated.
🔐 How digiRunner Stores and Uses the JWS Private Key
The private key used for JWS signing (and token generation) is stored in a KeyStore file (e.g., JKS format) and configured in the Token Keypair Setting section of the digiRunner properties file.
Key configuration parameters