2 instantiations of SslStreamCertificateContext
System.Net.Security (2)
System\Net\Security\SslStreamCertificateContext.cs (2)
150SslStreamCertificateContext ctx = new SslStreamCertificateContext(target, new ReadOnlyCollection<X509Certificate2>(intermediates), trust); 172return new SslStreamCertificateContext(new X509Certificate2(TargetCertificate), IntermediateCertificates, Trust);
24 references to SslStreamCertificateContext
Microsoft.AspNetCore.Server.Kestrel.Core (3)
Internal\SniOptionsSelector.cs (1)
75sslOptions.ServerCertificateContext = SslStreamCertificateContext.Create((X509Certificate2)sslOptions.ServerCertificate, additionalCertificates: fullChain);
Middleware\HttpsConnectionMiddleware.cs (2)
39private readonly SslStreamCertificateContext? _serverCertificateContext; 108_serverCertificateContext = SslStreamCertificateContext.Create(certificate, additionalCertificates: options.ServerCertificateChain);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
SniOptionsSelectorTests.cs (1)
854ServerCertificateContext = SslStreamCertificateContext.Create(_x509Certificate2, additionalCertificates: null, offline: true),
System.Net.Quic (2)
System\Net\Quic\Internal\MsQuicConfiguration.cs (2)
207SslStreamCertificateContext context = SslStreamCertificateContext.Create(cert, additionalCertificates: null, offline: true, trust: null);
System.Net.Security (18)
System\Net\Security\SslAuthenticationOptions.cs (3)
126CertificateContext = SslStreamCertificateContext.Create(certificateWithKey, additionalCertificates: null, offline: false, trust: null, noOcspFetch: !ocspFetch); 138CertificateContext = SslStreamCertificateContext.Create(certificateWithKey); 174internal SslStreamCertificateContext? CertificateContext { get; set; }
System\Net\Security\SslClientAuthenticationOptions.cs (1)
47public SslStreamCertificateContext? ClientCertificateContext { get; set; }
System\Net\Security\SslServerAuthenticationOptions.cs (1)
43public SslStreamCertificateContext? ServerCertificateContext { get; set; }
System\Net\Security\SslStream.Protocol.cs (7)
584_sslAuthenticationOptions.CertificateContext ??= SslStreamCertificateContext.Create(selectedCert); 643_sslAuthenticationOptions.CertificateContext ??= SslStreamCertificateContext.Create(selectedCert!); 650_sslAuthenticationOptions.CertificateContext ??= SslStreamCertificateContext.Create(selectedCert!); 661_sslAuthenticationOptions.CertificateContext ??= SslStreamCertificateContext.Create(selectedCert); 739_sslAuthenticationOptions.CertificateContext = SslStreamCertificateContext.Create(selectedCert); 782SslStreamCertificateContext certificateContext = sslAuthenticationOptions.CertificateContext; 797static DateTime GetExpiryTimestamp(SslStreamCertificateContext certificateContext)
System\Net\Security\SslStreamCertificateContext.cs (5)
25public static SslStreamCertificateContext Create(X509Certificate2 target, X509Certificate2Collection? additionalCertificates, bool offline) 30public static SslStreamCertificateContext Create(X509Certificate2 target, X509Certificate2Collection? additionalCertificates, bool offline = false, SslCertificateTrust? trust = null) 35internal static SslStreamCertificateContext Create( 150SslStreamCertificateContext ctx = new SslStreamCertificateContext(target, new ReadOnlyCollection<X509Certificate2>(intermediates), trust); 170internal SslStreamCertificateContext Duplicate()
System\Net\Security\SslStreamCertificateContext.Linux.cs (1)
105internal static SslStreamCertificateContext Create(X509Certificate2 target) =>