From 8e91ec2138da1b68291db14993f33c52af3d4222 Mon Sep 17 00:00:00 2001 From: Beat Rubischon Date: Fri, 12 Apr 2024 15:03:23 +0200 Subject: [PATCH] Disable UserTokenSigningKey randomization --- cmd/rdpgw/config/configuration.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/cmd/rdpgw/config/configuration.go b/cmd/rdpgw/config/configuration.go index 95a2d10..efde4ee 100644 --- a/cmd/rdpgw/config/configuration.go +++ b/cmd/rdpgw/config/configuration.go @@ -200,11 +200,6 @@ func Load(configFile string) Configuration { Conf.Security.UserTokenEncryptionKey, _ = security.GenerateRandomString(32) log.Printf("No valid `security.usertokenencryptionkey` specified (empty or not 32 characters). Setting to random") } - - if len(Conf.Security.UserTokenSigningKey) != 32 { - Conf.Security.UserTokenSigningKey, _ = security.GenerateRandomString(32) - log.Printf("No valid `security.usertokensigningkey` specified (empty or not 32 characters). Setting to random") - } } if len(Conf.Server.SessionKey) != 32 {