From 9d90ff4cc30b45e2a06355ef3628dcd75144b50e Mon Sep 17 00:00:00 2001 From: Dario Ghunney Ware Date: Wed, 30 Jul 2025 13:13:26 +0100 Subject: [PATCH] More cleanup --- app/core/src/main/resources/settings.yml.template | 2 +- .../proprietary/security/service/JwtKeystoreService.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/core/src/main/resources/settings.yml.template b/app/core/src/main/resources/settings.yml.template index b4cbe7b87..d346be07a 100644 --- a/app/core/src/main/resources/settings.yml.template +++ b/app/core/src/main/resources/settings.yml.template @@ -61,7 +61,7 @@ security: spCert: classpath:saml-public-cert.crt # Your signing certificate. Generated from your keypair jwt: enableKeyStore: true # Set to 'true' to enable JWT key store - enableKeyRotation: false # Set to 'true' to enable JWT key rotation + enableKeyRotation: true # Set to 'true' to enable JWT key rotation enableKeyCleanup: true # Set to 'true' to enable JWT key cleanup keyRetentionDays: 7 # Number of days to retain old keys. The default is 7 days. cleanupBatchSize: 100 # Number of keys to clean up in each batch. The default is 100. diff --git a/app/proprietary/src/main/java/stirling/software/proprietary/security/service/JwtKeystoreService.java b/app/proprietary/src/main/java/stirling/software/proprietary/security/service/JwtKeystoreService.java index a0082ec81..4155ce5cb 100644 --- a/app/proprietary/src/main/java/stirling/software/proprietary/security/service/JwtKeystoreService.java +++ b/app/proprietary/src/main/java/stirling/software/proprietary/security/service/JwtKeystoreService.java @@ -153,7 +153,7 @@ public class JwtKeystoreService implements JwtKeystoreServiceInterface { } private KeyPair generateRSAKeypair() { - KeyPairGenerator keyPairGenerator = null; + KeyPairGenerator keyPairGenerator; try { keyPairGenerator = KeyPairGenerator.getInstance("RSA");