4 writes to ServerCertificateContext
Microsoft.AspNetCore.Server.Kestrel.Core (3)
Internal\SniOptionsSelector.cs (2)
75sslOptions.ServerCertificateContext = SslStreamCertificateContext.Create((X509Certificate2)sslOptions.ServerCertificate, additionalCertificates: fullChain); 199ServerCertificateContext = sslOptions.ServerCertificateContext,
Middleware\HttpsConnectionMiddleware.cs (1)
339ServerCertificateContext = _serverCertificateContext,
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
SniOptionsSelectorTests.cs (1)
854ServerCertificateContext = SslStreamCertificateContext.Create(_x509Certificate2, additionalCertificates: null, offline: true),
14 references to ServerCertificateContext
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\SniOptionsSelector.cs (1)
199ServerCertificateContext = sslOptions.ServerCertificateContext,
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (3)
SniOptionsSelectorTests.cs (3)
897Assert.Same(options.ServerCertificateContext, clonedOptions.ServerCertificateContext); 898Assert.True(propertyNames.Remove(nameof(options.ServerCertificateContext)));
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (2)
Internal\QuicConnectionListener.cs (1)
107serverAuthenticationOptions.ServerCertificateContext == null &&
Internal\QuicLog.cs (1)
201$" {nameof(SslServerAuthenticationOptions.ServerCertificateContext)}, or {nameof(SslServerAuthenticationOptions.ServerCertificateSelectionCallback)}.", EventName = "ConnectionListenerCertificateNotSpecified")]
System.Net.Quic (4)
System\Net\Quic\Internal\MsQuicConfiguration.cs (4)
102else if (authenticationOptions.ServerCertificateContext is not null) 104certificate = authenticationOptions.ServerCertificateContext.TargetCertificate; 105intermediates = authenticationOptions.ServerCertificateContext.IntermediateCertificates; 114throw new ArgumentException(SR.Format(SR.net_quic_not_null_ceritifcate, nameof(SslServerAuthenticationOptions.ServerCertificate), nameof(SslServerAuthenticationOptions.ServerCertificateContext), nameof(SslServerAuthenticationOptions.ServerCertificateSelectionCallback)), nameof(options));
System.Net.Security (4)
System\Net\Security\SslAuthenticationOptions.cs (4)
78sslServerAuthenticationOptions.ServerCertificateContext == null && 86sslServerAuthenticationOptions.ServerCertificateContext != null || 113if (sslServerAuthenticationOptions.ServerCertificateContext != null) 115CertificateContext = sslServerAuthenticationOptions.ServerCertificateContext;