From 92b78ae898d9a313a37ec0f5655d18d2239b91fb Mon Sep 17 00:00:00 2001 From: Erich Barnstedt Date: Fri, 24 Nov 2023 15:56:48 +0100 Subject: [PATCH] Make sure security config is applied to custom cert validator. --- Applications/Controllers/BrowserController.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Applications/Controllers/BrowserController.cs b/Applications/Controllers/BrowserController.cs index 01954a2..d86d871 100644 --- a/Applications/Controllers/BrowserController.cs +++ b/Applications/Controllers/BrowserController.cs @@ -512,6 +512,7 @@ private async Task StartServerAsync() // create cert validator config.CertificateValidator = new CertificateValidator(); config.CertificateValidator.CertificateValidation += new CertificateValidationEventHandler(CertificateValidator_CertificateValidation); + config.CertificateValidator.Update(config.SecurityConfiguration).GetAwaiter().GetResult(); // start the server. await _application.Start(new SimpleServer()).ConfigureAwait(false);