Skip to content

Commit

Permalink
Make sure security config is applied to custom cert validator.
Browse files Browse the repository at this point in the history
  • Loading branch information
barnstee committed Nov 24, 2023
1 parent 07bf12e commit 92b78ae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Applications/Controllers/BrowserController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 92b78ae

Please sign in to comment.