8 instantiations of SslServerAuthenticationOptions
Microsoft.AspNetCore.Server.Kestrel.Core (4)
Internal\SniOptionsSelector.cs (2)
49
var sslOptions = new
SslServerAuthenticationOptions
188
new
SslServerAuthenticationOptions
Middleware\HttpsConnectionMiddleware.cs (2)
366
var sslOptions = new
SslServerAuthenticationOptions
572
var sslServerAuthenticationOptions = new
SslServerAuthenticationOptions
System.Net.Security (4)
System\Net\Security\SslStream.cs (4)
288
SslServerAuthenticationOptions options = new
SslServerAuthenticationOptions
358
SslServerAuthenticationOptions options = new
SslServerAuthenticationOptions
412
SslServerAuthenticationOptions options = new
SslServerAuthenticationOptions
425
SslServerAuthenticationOptions options = new
SslServerAuthenticationOptions
51 references to SslServerAuthenticationOptions
Microsoft.AspNetCore.Connections.Abstractions (1)
TlsConnectionCallbackOptions.cs (1)
21
public Func<TlsConnectionCallbackContext, CancellationToken, ValueTask<
SslServerAuthenticationOptions
>> OnConnection { get; set; } = default!;
Microsoft.AspNetCore.Server.Kestrel.Core (22)
HttpsConfigurationService.cs (1)
150
var
sslServerAuthenticationOptions = HttpsConnectionMiddleware.CreateHttp3Options(listenOptions.HttpsOptions, logger);
HttpsConnectionAdapterOptions.cs (2)
95
/// Provides direct configuration of the <see cref="
SslServerAuthenticationOptions
"/> on a per-connection basis.
98
public Action<ConnectionContext,
SslServerAuthenticationOptions
>? OnAuthenticate { get; set; }
Internal\Infrastructure\KestrelEventSource.cs (1)
169
public void TlsHandshakeStart(BaseConnectionContext connectionContext,
SslServerAuthenticationOptions
sslOptions)
Internal\SniOptionsSelector.cs (10)
26
private readonly Action<ConnectionContext,
SslServerAuthenticationOptions
>? _onAuthenticateCallback;
49
var
sslOptions = new SslServerAuthenticationOptions
116
public (
SslServerAuthenticationOptions
, ClientCertificateMode) GetOptions(ConnectionContext connection, string serverName)
150
var
sslOptions = sniOptions.SslOptions;
179
public static ValueTask<
SslServerAuthenticationOptions
> OptionsCallback(TlsHandshakeCallbackContext callbackContext)
184
return new ValueTask<
SslServerAuthenticationOptions
>(options);
187
internal static
SslServerAuthenticationOptions
CloneSslOptions(
SslServerAuthenticationOptions
sslOptions) =>
211
public SniOptions(
SslServerAuthenticationOptions
sslOptions, HttpProtocols httpProtocols, ClientCertificateMode clientCertificateMode)
218
public
SslServerAuthenticationOptions
SslOptions { get; }
Middleware\HttpsConnectionMiddleware.cs (7)
45
private readonly Func<TlsHandshakeCallbackContext, ValueTask<
SslServerAuthenticationOptions
>>? _tlsCallbackOptions;
366
var
sslOptions = new SslServerAuthenticationOptions
387
internal static void ConfigureAlpn(
SslServerAuthenticationOptions
serverOptions, HttpProtocols httpProtocols)
469
private static async ValueTask<
SslServerAuthenticationOptions
> ServerOptionsCallback(SslStream sslStream, SslClientHelloInfo clientHelloInfo, object? state, CancellationToken cancellationToken)
483
var
sslOptions = await middleware._tlsCallbackOptions!(callbackContext);
564
internal static
SslServerAuthenticationOptions
CreateHttp3Options(HttpsConnectionAdapterOptions httpsOptions, ILogger<HttpsConnectionMiddleware> logger)
572
var
sslServerAuthenticationOptions = new SslServerAuthenticationOptions
TlsHandshakeCallbackOptions.cs (1)
19
public Func<TlsHandshakeCallbackContext, ValueTask<
SslServerAuthenticationOptions
>> OnConnection { get; set; } = default!;
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (8)
Internal\QuicConnectionListener.cs (2)
76
var
serverAuthenticationOptions = await _tlsConnectionCallbackOptions.OnConnection(context, cancellationToken);
104
private void ValidateServerAuthenticationOptions(
SslServerAuthenticationOptions
serverAuthenticationOptions)
Internal\QuicLog.cs (6)
200
[LoggerMessage(18, LogLevel.Warning, $"{nameof(
SslServerAuthenticationOptions
)} must provide a server certificate using {nameof(
SslServerAuthenticationOptions
.ServerCertificate)}," +
201
$" {nameof(
SslServerAuthenticationOptions
.ServerCertificateContext)}, or {nameof(
SslServerAuthenticationOptions
.ServerCertificateSelectionCallback)}.", EventName = "ConnectionListenerCertificateNotSpecified")]
204
[LoggerMessage(19, LogLevel.Warning, $"{nameof(
SslServerAuthenticationOptions
)} must provide at least one application protocol using {nameof(
SslServerAuthenticationOptions
.ApplicationProtocols)}.", EventName = "ConnectionListenerApplicationProtocolsNotSpecified")]
netstandard (1)
netstandard.cs (1)
1250
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Security.
SslServerAuthenticationOptions
))]
System.Net.Quic (9)
System\Net\Quic\Internal\MsQuicConfiguration.cs (4)
88
SslServerAuthenticationOptions
authenticationOptions = options.ServerAuthenticationOptions;
118
throw new ArgumentException(SR.Format(SR.net_quic_not_null_ceritifcate, nameof(
SslServerAuthenticationOptions
.ServerCertificate), nameof(
SslServerAuthenticationOptions
.ServerCertificateContext), nameof(
SslServerAuthenticationOptions
.ServerCertificateSelectionCallback)), nameof(options));
System\Net\Quic\QuicConnection.SslConnectionOptions.cs (4)
36
/// Always <c>true</c> for outbound/client connections. Configured for inbound/server ones via <see cref="
SslServerAuthenticationOptions
.ClientCertificateRequired"/>.
40
/// Configured via <see cref="
SslServerAuthenticationOptions
.CertificateRevocationCheckMode"/> or <see cref="SslClientAuthenticationOptions.CertificateRevocationCheckMode"/>.
44
/// Configured via <see cref="
SslServerAuthenticationOptions
.RemoteCertificateValidationCallback"/> or <see cref="SslClientAuthenticationOptions.RemoteCertificateValidationCallback"/>.
49
/// Configured via <see cref="
SslServerAuthenticationOptions
.CertificateChainPolicy"/> or <see cref="SslClientAuthenticationOptions.CertificateChainPolicy"/>.
System\Net\Quic\QuicConnectionOptions.cs (1)
231
public
SslServerAuthenticationOptions
ServerAuthenticationOptions { get; set; } = null!;
System.Net.Security (10)
System\Net\Security\SslAuthenticationOptions.cs (1)
88
internal void UpdateOptions(
SslServerAuthenticationOptions
sslServerAuthenticationOptions)
System\Net\Security\SslStream.cs (8)
40
public delegate ValueTask<
SslServerAuthenticationOptions
> ServerOptionsSelectionCallback(SslStream stream, SslClientHelloInfo clientHelloInfo, object? state, CancellationToken cancellationToken);
288
SslServerAuthenticationOptions
options = new SslServerAuthenticationOptions
300
private IAsyncResult BeginAuthenticateAsServer(
SslServerAuthenticationOptions
sslServerAuthenticationOptions, CancellationToken cancellationToken, AsyncCallback? asyncCallback, object? asyncState) =>
358
SslServerAuthenticationOptions
options = new SslServerAuthenticationOptions
370
public void AuthenticateAsServer(
SslServerAuthenticationOptions
sslServerAuthenticationOptions)
412
SslServerAuthenticationOptions
options = new SslServerAuthenticationOptions
425
SslServerAuthenticationOptions
options = new SslServerAuthenticationOptions
437
public Task AuthenticateAsServerAsync(
SslServerAuthenticationOptions
sslServerAuthenticationOptions, CancellationToken cancellationToken = default)
System\Net\Security\SslStream.IO.cs (1)
497
SslServerAuthenticationOptions
userOptions =