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);
53 references to HttpsConnectionMiddleware
Microsoft.AspNetCore.Server.Kestrel.Core (53)
_generated\0\LoggerMessage.g.cs (10)
1484
public static partial void AuthenticationFailed(this global::Microsoft.Extensions.Logging.ILogger<global::Microsoft.AspNetCore.Server.Kestrel.Https.Internal.
HttpsConnectionMiddleware
> logger, global::System.Exception exception)
1500
public static partial void AuthenticationTimedOut(this global::Microsoft.Extensions.Logging.ILogger<global::Microsoft.AspNetCore.Server.Kestrel.Https.Internal.
HttpsConnectionMiddleware
> logger)
1516
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)
1532
public static partial void Http2DefaultCiphersInsufficient(this global::Microsoft.Extensions.Logging.ILogger<global::Microsoft.AspNetCore.Server.Kestrel.Https.Internal.
HttpsConnectionMiddleware
> logger)
1548
private static partial void LocatingCertWithPrivateKey(this global::Microsoft.Extensions.Logging.ILogger<global::Microsoft.AspNetCore.Server.Kestrel.Https.Internal.
HttpsConnectionMiddleware
> logger, string thumbPrint)
1564
public static partial void FoundCertWithPrivateKey(this global::Microsoft.Extensions.Logging.ILogger<global::Microsoft.AspNetCore.Server.Kestrel.Https.Internal.
HttpsConnectionMiddleware
> logger, string thumbprint, string? storeName)
1580
public static partial void FailedToFindCertificateInStore(this global::Microsoft.Extensions.Logging.ILogger<global::Microsoft.AspNetCore.Server.Kestrel.Https.Internal.
HttpsConnectionMiddleware
> logger, global::System.Exception exception)
1596
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)
1612
public static partial void NoSubjectAlternativeName(this global::Microsoft.Extensions.Logging.ILogger<global::Microsoft.AspNetCore.Server.Kestrel.Https.Internal.
HttpsConnectionMiddleware
> logger, string thumbprint)
1628
public static partial void FailedToReadChannelBinding(this global::Microsoft.Extensions.Logging.ILogger<global::Microsoft.AspNetCore.Server.Kestrel.Https.Internal.
HttpsConnectionMiddleware
> logger, global::System.Security.Authentication.ExtendedProtection.ChannelBindingKind channelBindingKind, global::System.Exception exception)
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);
Internal\TlsConnectionFeature.cs (2)
23
private readonly ILogger<
HttpsConnectionMiddleware
> _logger;
41
internal TlsConnectionFeature(SslStream sslStream, ConnectionContext context, ILogger<
HttpsConnectionMiddleware
> logger)
KestrelServer.cs (1)
84
public void Initialize(IHostEnvironment hostEnvironment, ILogger<KestrelServer> serverLogger, ILogger<
HttpsConnectionMiddleware
> httpsLogger)
KestrelServerOptions.cs (1)
335
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 (20)
35
private readonly ILogger<
HttpsConnectionMiddleware
> _logger;
74
_logger = loggerFactory.CreateLogger<
HttpsConnectionMiddleware
>();
137
_logger = loggerFactory.CreateLogger<
HttpsConnectionMiddleware
>();
472
var (middleware, context, feature, metricsContext) = (ValueTuple<
HttpsConnectionMiddleware
, ConnectionContext, Core.Internal.TlsConnectionFeature, ConnectionMetricsContext>)state!;
499
internal static void EnsureCertificateIsAllowedForServerAuth(X509Certificate2 certificate, ILogger<
HttpsConnectionMiddleware
> logger)
526
internal static HttpProtocols ValidateAndNormalizeHttpProtocols(HttpProtocols httpProtocols, ILogger<
HttpsConnectionMiddleware
> logger)
565
internal static SslServerAuthenticationOptions CreateHttp3Options(HttpsConnectionAdapterOptions httpsOptions, ILogger<
HttpsConnectionMiddleware
> logger)
615
public static partial void AuthenticationFailed(this ILogger<
HttpsConnectionMiddleware
> logger, Exception exception);
618
public static partial void AuthenticationTimedOut(this ILogger<
HttpsConnectionMiddleware
> logger);
621
public static partial void HttpsConnectionEstablished(this ILogger<
HttpsConnectionMiddleware
> logger, string connectionId, SslProtocols protocol);
625
public static partial void Http2DefaultCiphersInsufficient(this ILogger<
HttpsConnectionMiddleware
> logger);
628
private static partial void LocatingCertWithPrivateKey(this ILogger<
HttpsConnectionMiddleware
> logger, string thumbPrint);
630
public static void LocatingCertWithPrivateKey(this ILogger<
HttpsConnectionMiddleware
> logger, X509Certificate2 certificate) => LocatingCertWithPrivateKey(logger, certificate.Thumbprint);
633
public static partial void FoundCertWithPrivateKey(this ILogger<
HttpsConnectionMiddleware
> logger, string thumbprint, string? storeName);
635
public static void FoundCertWithPrivateKey(this ILogger<
HttpsConnectionMiddleware
> logger, X509Certificate2 certificate, StoreLocation storeLocation)
642
public static partial void FailedToFindCertificateInStore(this ILogger<
HttpsConnectionMiddleware
> logger, Exception exception);
645
public static partial void FailedToOpenStore(this ILogger<
HttpsConnectionMiddleware
> logger, string? storeName, Exception exception);
648
public static partial void NoSubjectAlternativeName(this ILogger<
HttpsConnectionMiddleware
> logger, string thumbprint);
651
public static partial void FailedToReadChannelBinding(this ILogger<
HttpsConnectionMiddleware
> logger, ChannelBindingKind channelBindingKind, Exception exception);
653
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)