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