2 instantiations of HttpsConnectionMiddleware
Microsoft.AspNetCore.Server.Kestrel.Core (2)
ListenOptionsHttpsExtensions.cs (2)
206
var middleware = new
HttpsConnectionMiddleware
(next, httpsOptions, listenOptions.Protocols, loggerFactory, metrics);
273
var middleware = new
HttpsConnectionMiddleware
(next, callbackOptions, loggerFactory, metrics);
49 references to HttpsConnectionMiddleware
Microsoft.AspNetCore.Server.Kestrel.Core (49)
_generated\0\LoggerMessage.g.cs (9)
1468
public static partial void AuthenticationFailed(this global::Microsoft.Extensions.Logging.ILogger<global::Microsoft.AspNetCore.Server.Kestrel.Https.Internal.
HttpsConnectionMiddleware
> logger, global::System.Exception exception)
1484
public static partial void AuthenticationTimedOut(this global::Microsoft.Extensions.Logging.ILogger<global::Microsoft.AspNetCore.Server.Kestrel.Https.Internal.
HttpsConnectionMiddleware
> logger)
1500
public static partial void HttpsConnectionEstablished(this global::Microsoft.Extensions.Logging.ILogger<global::Microsoft.AspNetCore.Server.Kestrel.Https.Internal.
HttpsConnectionMiddleware
> logger, string connectionId, global::System.Security.Authentication.SslProtocols protocol)
1516
public static partial void Http2DefaultCiphersInsufficient(this global::Microsoft.Extensions.Logging.ILogger<global::Microsoft.AspNetCore.Server.Kestrel.Https.Internal.
HttpsConnectionMiddleware
> logger)
1532
private static partial void LocatingCertWithPrivateKey(this global::Microsoft.Extensions.Logging.ILogger<global::Microsoft.AspNetCore.Server.Kestrel.Https.Internal.
HttpsConnectionMiddleware
> logger, string thumbPrint)
1548
public static partial void FoundCertWithPrivateKey(this global::Microsoft.Extensions.Logging.ILogger<global::Microsoft.AspNetCore.Server.Kestrel.Https.Internal.
HttpsConnectionMiddleware
> logger, string thumbprint, string? storeName)
1564
public static partial void FailedToFindCertificateInStore(this global::Microsoft.Extensions.Logging.ILogger<global::Microsoft.AspNetCore.Server.Kestrel.Https.Internal.
HttpsConnectionMiddleware
> logger, global::System.Exception exception)
1580
public static partial void FailedToOpenStore(this global::Microsoft.Extensions.Logging.ILogger<global::Microsoft.AspNetCore.Server.Kestrel.Https.Internal.
HttpsConnectionMiddleware
> logger, string? storeName, global::System.Exception exception)
1596
public static partial void NoSubjectAlternativeName(this global::Microsoft.Extensions.Logging.ILogger<global::Microsoft.AspNetCore.Server.Kestrel.Https.Internal.
HttpsConnectionMiddleware
> logger, string thumbprint)
HttpsConfigurationService.cs (7)
27
private Action<FeatureCollection, ListenOptions, ILogger<
HttpsConnectionMiddleware
>>? _populateMultiplexedTransportFeatures;
30
private ILogger<
HttpsConnectionMiddleware
>? _httpsLogger;
60
ILogger<
HttpsConnectionMiddleware
> httpsLogger)
144
internal static void PopulateMultiplexedTransportFeaturesWorker(FeatureCollection features, ListenOptions listenOptions, ILogger<
HttpsConnectionMiddleware
> logger)
150
var sslServerAuthenticationOptions =
HttpsConnectionMiddleware
.CreateHttp3Options(listenOptions.HttpsOptions, logger);
245
private readonly ILogger<
HttpsConnectionMiddleware
> _httpsLogger;
250
ILogger<
HttpsConnectionMiddleware
> httpsLogger)
IHttpsConfigurationService.cs (1)
34
ILogger<
HttpsConnectionMiddleware
> httpsLogger);
Internal\SniOptionsSelector.cs (7)
23
private readonly ILogger<
HttpsConnectionMiddleware
> _logger;
38
ILogger<
HttpsConnectionMiddleware
> logger)
80
HttpsConnectionMiddleware
.EnsureCertificateIsAllowedForServerAuth(cert2, logger);
90
HttpsConnectionMiddleware
.RemoteCertificateValidationCallback(
95
httpProtocols =
HttpsConnectionMiddleware
.ValidateAndNormalizeHttpProtocols(httpProtocols, logger);
96
HttpsConnectionMiddleware
.ConfigureAlpn(sslOptions, httpProtocols);
163
HttpsConnectionMiddleware
.EnsureCertificateIsAllowedForServerAuth(fallbackCertificate, _logger);
KestrelServer.cs (1)
84
public void Initialize(IHostEnvironment hostEnvironment, ILogger<KestrelServer> serverLogger, ILogger<
HttpsConnectionMiddleware
> httpsLogger)
KestrelServerOptions.cs (1)
332
var httpsLogger = ApplicationServices.GetRequiredService<ILogger<
HttpsConnectionMiddleware
>>();
ListenOptionsHttpsExtensions.cs (2)
206
var
middleware = new HttpsConnectionMiddleware(next, httpsOptions, listenOptions.Protocols, loggerFactory, metrics);
273
var
middleware = new HttpsConnectionMiddleware(next, callbackOptions, loggerFactory, metrics);
Middleware\HttpsConnectionMiddleware.cs (19)
34
private readonly ILogger<
HttpsConnectionMiddleware
> _logger;
73
_logger = loggerFactory.CreateLogger<
HttpsConnectionMiddleware
>();
136
_logger = loggerFactory.CreateLogger<
HttpsConnectionMiddleware
>();
471
var (middleware, context, feature, metricsContext) = (ValueTuple<
HttpsConnectionMiddleware
, ConnectionContext, Core.Internal.TlsConnectionFeature, ConnectionMetricsContext>)state!;
498
internal static void EnsureCertificateIsAllowedForServerAuth(X509Certificate2 certificate, ILogger<
HttpsConnectionMiddleware
> logger)
525
internal static HttpProtocols ValidateAndNormalizeHttpProtocols(HttpProtocols httpProtocols, ILogger<
HttpsConnectionMiddleware
> logger)
564
internal static SslServerAuthenticationOptions CreateHttp3Options(HttpsConnectionAdapterOptions httpsOptions, ILogger<
HttpsConnectionMiddleware
> logger)
614
public static partial void AuthenticationFailed(this ILogger<
HttpsConnectionMiddleware
> logger, Exception exception);
617
public static partial void AuthenticationTimedOut(this ILogger<
HttpsConnectionMiddleware
> logger);
620
public static partial void HttpsConnectionEstablished(this ILogger<
HttpsConnectionMiddleware
> logger, string connectionId, SslProtocols protocol);
624
public static partial void Http2DefaultCiphersInsufficient(this ILogger<
HttpsConnectionMiddleware
> logger);
627
private static partial void LocatingCertWithPrivateKey(this ILogger<
HttpsConnectionMiddleware
> logger, string thumbPrint);
629
public static void LocatingCertWithPrivateKey(this ILogger<
HttpsConnectionMiddleware
> logger, X509Certificate2 certificate) => LocatingCertWithPrivateKey(logger, certificate.Thumbprint);
632
public static partial void FoundCertWithPrivateKey(this ILogger<
HttpsConnectionMiddleware
> logger, string thumbprint, string? storeName);
634
public static void FoundCertWithPrivateKey(this ILogger<
HttpsConnectionMiddleware
> logger, X509Certificate2 certificate, StoreLocation storeLocation)
641
public static partial void FailedToFindCertificateInStore(this ILogger<
HttpsConnectionMiddleware
> logger, Exception exception);
644
public static partial void FailedToOpenStore(this ILogger<
HttpsConnectionMiddleware
> logger, string? storeName, Exception exception);
647
public static partial void NoSubjectAlternativeName(this ILogger<
HttpsConnectionMiddleware
> logger, string thumbprint);
649
public static void FailedToOpenStore(this ILogger<
HttpsConnectionMiddleware
> logger, StoreLocation storeLocation, Exception exception)
TlsConfigurationLoader.cs (2)
27
private readonly ILogger<
HttpsConnectionMiddleware
> _httpsLogger;
32
ILogger<
HttpsConnectionMiddleware
> httpsLogger)