2 instantiations of HttpsConnectionMiddleware
Microsoft.AspNetCore.Server.Kestrel.Core (2)
ListenOptionsHttpsExtensions.cs (2)
202var middleware = new HttpsConnectionMiddleware(next, httpsOptions, listenOptions.Protocols, loggerFactory, metrics); 269var middleware = new HttpsConnectionMiddleware(next, callbackOptions, loggerFactory, metrics);
40 references to HttpsConnectionMiddleware
Microsoft.AspNetCore.Server.Kestrel.Core (40)
HttpsConfigurationService.cs (7)
27private Action<FeatureCollection, ListenOptions, ILogger<HttpsConnectionMiddleware>>? _populateMultiplexedTransportFeatures; 30private ILogger<HttpsConnectionMiddleware>? _httpsLogger; 60ILogger<HttpsConnectionMiddleware> httpsLogger) 144internal static void PopulateMultiplexedTransportFeaturesWorker(FeatureCollection features, ListenOptions listenOptions, ILogger<HttpsConnectionMiddleware> logger) 150var sslServerAuthenticationOptions = HttpsConnectionMiddleware.CreateHttp3Options(listenOptions.HttpsOptions, logger); 245private readonly ILogger<HttpsConnectionMiddleware> _httpsLogger; 250ILogger<HttpsConnectionMiddleware> httpsLogger)
IHttpsConfigurationService.cs (1)
34ILogger<HttpsConnectionMiddleware> httpsLogger);
Internal\SniOptionsSelector.cs (7)
23private readonly ILogger<HttpsConnectionMiddleware> _logger; 38ILogger<HttpsConnectionMiddleware> logger) 80HttpsConnectionMiddleware.EnsureCertificateIsAllowedForServerAuth(cert2, logger); 90HttpsConnectionMiddleware.RemoteCertificateValidationCallback( 95httpProtocols = HttpsConnectionMiddleware.ValidateAndNormalizeHttpProtocols(httpProtocols, logger); 96HttpsConnectionMiddleware.ConfigureAlpn(sslOptions, httpProtocols); 163HttpsConnectionMiddleware.EnsureCertificateIsAllowedForServerAuth(fallbackCertificate, _logger);
KestrelServer.cs (1)
82public void Initialize(IHostEnvironment hostEnvironment, ILogger<KestrelServer> serverLogger, ILogger<HttpsConnectionMiddleware> httpsLogger)
KestrelServerOptions.cs (1)
328var httpsLogger = ApplicationServices.GetRequiredService<ILogger<HttpsConnectionMiddleware>>();
ListenOptionsHttpsExtensions.cs (2)
202var middleware = new HttpsConnectionMiddleware(next, httpsOptions, listenOptions.Protocols, loggerFactory, metrics); 269var middleware = new HttpsConnectionMiddleware(next, callbackOptions, loggerFactory, metrics);
Middleware\HttpsConnectionMiddleware.cs (19)
33private readonly ILogger<HttpsConnectionMiddleware> _logger; 69_logger = loggerFactory.CreateLogger<HttpsConnectionMiddleware>(); 125_logger = loggerFactory.CreateLogger<HttpsConnectionMiddleware>(); 441var (middleware, context, feature, metricsContext) = (ValueTuple<HttpsConnectionMiddleware, ConnectionContext, Core.Internal.TlsConnectionFeature, ConnectionMetricsContext>)state!; 468internal static void EnsureCertificateIsAllowedForServerAuth(X509Certificate2 certificate, ILogger<HttpsConnectionMiddleware> logger) 495internal static HttpProtocols ValidateAndNormalizeHttpProtocols(HttpProtocols httpProtocols, ILogger<HttpsConnectionMiddleware> logger) 534internal static SslServerAuthenticationOptions CreateHttp3Options(HttpsConnectionAdapterOptions httpsOptions, ILogger<HttpsConnectionMiddleware> logger) 584public static partial void AuthenticationFailed(this ILogger<HttpsConnectionMiddleware> logger, Exception exception); 587public static partial void AuthenticationTimedOut(this ILogger<HttpsConnectionMiddleware> logger); 590public static partial void HttpsConnectionEstablished(this ILogger<HttpsConnectionMiddleware> logger, string connectionId, SslProtocols protocol); 594public static partial void Http2DefaultCiphersInsufficient(this ILogger<HttpsConnectionMiddleware> logger); 597private static partial void LocatingCertWithPrivateKey(this ILogger<HttpsConnectionMiddleware> logger, string thumbPrint); 599public static void LocatingCertWithPrivateKey(this ILogger<HttpsConnectionMiddleware> logger, X509Certificate2 certificate) => LocatingCertWithPrivateKey(logger, certificate.Thumbprint); 602public static partial void FoundCertWithPrivateKey(this ILogger<HttpsConnectionMiddleware> logger, string thumbprint, string? storeName); 604public static void FoundCertWithPrivateKey(this ILogger<HttpsConnectionMiddleware> logger, X509Certificate2 certificate, StoreLocation storeLocation) 611public static partial void FailedToFindCertificateInStore(this ILogger<HttpsConnectionMiddleware> logger, Exception exception); 614public static partial void FailedToOpenStore(this ILogger<HttpsConnectionMiddleware> logger, string? storeName, Exception exception); 617public static partial void NoSubjectAlternativeName(this ILogger<HttpsConnectionMiddleware> logger, string thumbprint); 619public static void FailedToOpenStore(this ILogger<HttpsConnectionMiddleware> logger, StoreLocation storeLocation, Exception exception)
TlsConfigurationLoader.cs (2)
27private readonly ILogger<HttpsConnectionMiddleware> _httpsLogger; 32ILogger<HttpsConnectionMiddleware> httpsLogger)