diff --git a/src/Http/Hosting/HttpServerHostContextBuilder.cs b/src/Http/Hosting/HttpServerHostContextBuilder.cs index 392b973..4443e96 100644 --- a/src/Http/Hosting/HttpServerHostContextBuilder.cs +++ b/src/Http/Hosting/HttpServerHostContextBuilder.cs @@ -69,6 +69,12 @@ public HttpServerHostContext Build () { if (listeningHost.Ports.Count == 0) listeningHost.Ports.Add ( ListeningPort.GetRandomPort () ); + if (listeningHost.SslOptions is { } sslOptions) { + foreach (ListeningHost configuredHost in configuration.ListeningHosts) { + configuredHost.SslOptions ??= sslOptions; + } + } + return _context; }