1 type derived from X509Certificate
System.Security.Cryptography (1)
artifacts\obj\System.Security.Cryptography\Debug\net10.0\System.Security.Cryptography.notsupported.cs (1)
3671public partial class X509Certificate2 : System.Security.Cryptography.X509Certificates.X509Certificate
5 instantiations of X509Certificate
Microsoft.AspNetCore.SignalR.Client.Tests (1)
HttpConnectionTests.cs (1)
94var clientCertificate = new X509Certificate(Array.Empty<byte>());
Microsoft.AspNetCore.SignalR.Tests (1)
WebSocketsTransportTests.cs (1)
34var clientCertificate = new X509Certificate(Array.Empty<byte>());
WindowsBase.Tests (3)
System\IO\Packaging\PackageDigitalSignatureManagerTests.cs (3)
70var c = new X509Certificate(); 222var c = new X509Certificate(); 244var c = new X509Certificate();
117 references to X509Certificate
dotnet-dev-certs (2)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
906/// <see cref="X509Certificate.Equals(X509Certificate?)"/> is not adequate for security purposes.
dotnet-svcutil-lib (13)
CmdCredentialsProvider.cs (7)
129public X509Certificate GetCertificate(Uri serviceUri) 139private Dictionary<string, X509Certificate> _validatedClientCerts = new Dictionary<string, X509Certificate>(); 206private bool ValidateServerCertificate(object sender, X509Certificate cert, X509Chain chain, SslPolicyErrors sslPolicyErrors) 221private bool PromptUserOnInvalidCert(X509Certificate cert, SslPolicyErrors sslPolicyErrors) 247private static string FormatCertificate(X509Certificate cert, string certId = null) 309public static string GetCertHashString(this X509Certificate cert)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SslStreamSecurityUpgradeProvider.cs (4)
391private bool ValidateRemoteCertificate(object sender, X509Certificate certificate, X509Chain chain, 630private static X509Certificate SelectClientCertificate(object sender, string targetHost, 631X509CertificateCollection localCertificates, X509Certificate remoteCertificate, string[] acceptableIssuers) 636private bool ValidateRemoteCertificate(object sender, X509Certificate certificate, X509Chain chain,
Metadata\IClientCertificateProvider.cs (1)
12X509Certificate GetCertificate(Uri serviceUri);
Metadata\MetadaExchangeResolver.cs (1)
33private X509Certificate _clientCertificate;
InMemory.FunctionalTests (3)
HttpsConnectionMiddlewareTests.cs (2)
863var c = (X509Certificate)list[i];
src\Servers\Kestrel\shared\test\CertHelper.cs (1)
41public static bool AllowAnyServerCertificate(object sender, X509Certificate certificate, X509Chain chain)
Interop.FunctionalTests (1)
Http3\Http3TlsTests.cs (1)
482RemoteCertificateValidationCallback = (object _sender, X509Certificate actualCertificate, X509Chain _chain, SslPolicyErrors _sslPolicyErrors) =>
Microsoft.AspNetCore.DeveloperCertificates.XPlat (2)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
906/// <see cref="X509Certificate.Equals(X509Certificate?)"/> is not adequate for security purposes.
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
HttpsTests.cs (1)
295X509Certificate cert = null)
Microsoft.AspNetCore.Server.Kestrel.Core (7)
Internal\TlsConnectionFeature.cs (1)
122private static X509Certificate2? ConvertToX509Certificate2(X509Certificate? certificate)
Middleware\HttpsConnectionMiddleware.cs (4)
391X509Certificate? certificate, 425private bool RemoteCertificateValidationCallback(object sender, X509Certificate? certificate, X509Chain? chain, SslPolicyErrors sslPolicyErrors) 493private static X509Certificate2? ConvertToX509Certificate2(X509Certificate? certificate) 586= (object sender, X509Certificate? certificate, X509Chain? chain, SslPolicyErrors sslPolicyErrors) =>
src\Shared\CertificateGeneration\CertificateManager.cs (2)
906/// <see cref="X509Certificate.Equals(X509Certificate?)"/> is not adequate for security purposes.
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
src\Servers\Kestrel\shared\test\CertHelper.cs (1)
41public static bool AllowAnyServerCertificate(object sender, X509Certificate certificate, X509Chain chain)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
Internal\QuicConnectionContext.FeatureCollection.cs (1)
47private static X509Certificate2? ConvertToX509Certificate2(X509Certificate? certificate)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (1)
QuicTestHelpers.cs (1)
114private static bool RemoteCertificateValidationCallback(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors)
Microsoft.AspNetCore.SignalR.Client.Tests (1)
HttpConnectionTests.cs (1)
94var clientCertificate = new X509Certificate(Array.Empty<byte>());
Microsoft.AspNetCore.SignalR.Tests (1)
WebSocketsTransportTests.cs (1)
34var clientCertificate = new X509Certificate(Array.Empty<byte>());
Microsoft.DotNet.SignTool (1)
src\VerifySignatures.cs (1)
221X509Certificate signer = X509Certificate2.CreateFromSignedFile(fullPath);
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
935[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.X509Certificates.X509Certificate))]
netstandard (1)
netstandard.cs (1)
1954[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.X509Certificates.X509Certificate))]
ReachFramework (8)
packaging\XpsDigitalSignature.cs (3)
174X509Certificate 266Verify(X509Certificate certificate) 290VerifyCertificate(X509Certificate certificate)
Packaging\XpsDocument.cs (4)
359X509Certificate certificate, 396X509Certificate certificate, 437X509Certificate certificate, 827X509Certificate certificate,
Packaging\XpsManager.cs (1)
846X509Certificate certificate,
System.DirectoryServices.Protocols (2)
artifacts\obj\System.DirectoryServices.Protocols\Debug\net10.0\System.DirectoryServices.Protocols.notsupported.cs (2)
499public delegate System.Security.Cryptography.X509Certificates.X509Certificate QueryClientCertificateCallback(System.DirectoryServices.Protocols.LdapConnection connection, byte[][] trustedCAs); 759public delegate bool VerifyServerCertificateCallback(System.DirectoryServices.Protocols.LdapConnection connection, System.Security.Cryptography.X509Certificates.X509Certificate certificate);
System.Net.HttpListener (4)
System\Net\Managed\HttpConnection.cs (2)
62private readonly X509Certificate _cert; 74public HttpConnection(Socket sock, HttpEndPointListener epl, bool secure, X509Certificate cert)
System\Net\Managed\HttpEndPointListener.cs (1)
49private readonly X509Certificate? _cert;
System\Net\Managed\HttpListener.Certificates.cs (1)
20internal static X509Certificate? LoadCertificateAndKey(IPAddress addr, int port)
System.Net.Quic (1)
artifacts\obj\System.Net.Quic\Debug\net10.0\System.Net.Quic.notsupported.cs (1)
31public System.Security.Cryptography.X509Certificates.X509Certificate? RemoteCertificate { get { throw new System.PlatformNotSupportedException(System.SR.SystemNetQuic_PlatformNotSupported); } }
System.Net.Requests (2)
artifacts\obj\System.Net.Requests\Debug\net10.0\System.Net.Requests.notsupported.cs (2)
473public System.Security.Cryptography.X509Certificates.X509Certificate? Certificate { get { throw new System.PlatformNotSupportedException(System.SR.SystemNetRequests_PlatformNotSupported); } } 474public System.Security.Cryptography.X509Certificates.X509Certificate? ClientCertificate { get { throw new System.PlatformNotSupportedException(System.SR.SystemNetRequests_PlatformNotSupported); } }
System.Net.Security (16)
artifacts\obj\System.Net.Security\Debug\net10.0\System.Net.Security.notsupported.cs (16)
39public delegate System.Security.Cryptography.X509Certificates.X509Certificate? LocalCertificateSelectionCallback(object sender, string targetHost, System.Security.Cryptography.X509Certificates.X509CertificateCollection localCertificates, System.Security.Cryptography.X509Certificates.X509Certificate? remoteCertificate, string[] acceptableIssuers); 174public delegate bool RemoteCertificateValidationCallback(object sender, System.Security.Cryptography.X509Certificates.X509Certificate? certificate, System.Security.Cryptography.X509Certificates.X509Chain? chain, System.Net.Security.SslPolicyErrors sslPolicyErrors); 175public delegate System.Security.Cryptography.X509Certificates.X509Certificate ServerCertificateSelectionCallback(object sender, string? hostName); 242public System.Security.Cryptography.X509Certificates.X509Certificate? ServerCertificate { get { throw new System.PlatformNotSupportedException(System.SR.SystemNetSecurity_PlatformNotSupported); } set { throw new System.PlatformNotSupportedException(System.SR.SystemNetSecurity_PlatformNotSupported); } } 276public virtual System.Security.Cryptography.X509Certificates.X509Certificate? LocalCertificate { get { throw new System.PlatformNotSupportedException(System.SR.SystemNetSecurity_PlatformNotSupported); } } 282public virtual System.Security.Cryptography.X509Certificates.X509Certificate? RemoteCertificate { get { throw new System.PlatformNotSupportedException(System.SR.SystemNetSecurity_PlatformNotSupported); } } 296public virtual void AuthenticateAsServer(System.Security.Cryptography.X509Certificates.X509Certificate serverCertificate) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSecurity_PlatformNotSupported); } 297public virtual void AuthenticateAsServer(System.Security.Cryptography.X509Certificates.X509Certificate serverCertificate, bool clientCertificateRequired, bool checkCertificateRevocation) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSecurity_PlatformNotSupported); } 298public virtual void AuthenticateAsServer(System.Security.Cryptography.X509Certificates.X509Certificate serverCertificate, bool clientCertificateRequired, System.Security.Authentication.SslProtocols enabledSslProtocols, bool checkCertificateRevocation) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSecurity_PlatformNotSupported); } 301public virtual System.Threading.Tasks.Task AuthenticateAsServerAsync(System.Security.Cryptography.X509Certificates.X509Certificate serverCertificate) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSecurity_PlatformNotSupported); } 302public virtual System.Threading.Tasks.Task AuthenticateAsServerAsync(System.Security.Cryptography.X509Certificates.X509Certificate serverCertificate, bool clientCertificateRequired, bool checkCertificateRevocation) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSecurity_PlatformNotSupported); } 303public virtual System.Threading.Tasks.Task AuthenticateAsServerAsync(System.Security.Cryptography.X509Certificates.X509Certificate serverCertificate, bool clientCertificateRequired, System.Security.Authentication.SslProtocols enabledSslProtocols, bool checkCertificateRevocation) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSecurity_PlatformNotSupported); } 307public virtual System.IAsyncResult BeginAuthenticateAsServer(System.Security.Cryptography.X509Certificates.X509Certificate serverCertificate, System.AsyncCallback? asyncCallback, object? asyncState) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSecurity_PlatformNotSupported); } 308public virtual System.IAsyncResult BeginAuthenticateAsServer(System.Security.Cryptography.X509Certificates.X509Certificate serverCertificate, bool clientCertificateRequired, bool checkCertificateRevocation, System.AsyncCallback? asyncCallback, object? asyncState) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSecurity_PlatformNotSupported); } 309public virtual System.IAsyncResult BeginAuthenticateAsServer(System.Security.Cryptography.X509Certificates.X509Certificate serverCertificate, bool clientCertificateRequired, System.Security.Authentication.SslProtocols enabledSslProtocols, bool checkCertificateRevocation, System.AsyncCallback? asyncCallback, object? asyncState) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSecurity_PlatformNotSupported); }
System.Security.Cryptography (15)
artifacts\obj\System.Security.Cryptography\Debug\net10.0\System.Security.Cryptography.notsupported.cs (15)
3590public X509Certificate(System.Security.Cryptography.X509Certificates.X509Certificate cert) { throw new System.PlatformNotSupportedException(System.SR.SystemSecurityCryptography_PlatformNotSupported); } 3614public static System.Security.Cryptography.X509Certificates.X509Certificate CreateFromCertFile(string filename) { throw new System.PlatformNotSupportedException(System.SR.SystemSecurityCryptography_PlatformNotSupported); } 3617public static System.Security.Cryptography.X509Certificates.X509Certificate CreateFromSignedFile(string filename) { throw new System.PlatformNotSupportedException(System.SR.SystemSecurityCryptography_PlatformNotSupported); } 3621public virtual bool Equals([System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] System.Security.Cryptography.X509Certificates.X509Certificate? other) { throw new System.PlatformNotSupportedException(System.SR.SystemSecurityCryptography_PlatformNotSupported); } 3705public X509Certificate2(System.Security.Cryptography.X509Certificates.X509Certificate certificate) { throw new System.PlatformNotSupportedException(System.SR.SystemSecurityCryptography_PlatformNotSupported); } 3870public X509CertificateCollection(System.Security.Cryptography.X509Certificates.X509Certificate[] value) { throw new System.PlatformNotSupportedException(System.SR.SystemSecurityCryptography_PlatformNotSupported); } 3871public System.Security.Cryptography.X509Certificates.X509Certificate this[int index] { get { throw new System.PlatformNotSupportedException(System.SR.SystemSecurityCryptography_PlatformNotSupported); } set { throw new System.PlatformNotSupportedException(System.SR.SystemSecurityCryptography_PlatformNotSupported); } } 3872public int Add(System.Security.Cryptography.X509Certificates.X509Certificate value) { throw new System.PlatformNotSupportedException(System.SR.SystemSecurityCryptography_PlatformNotSupported); } 3874public void AddRange(System.Security.Cryptography.X509Certificates.X509Certificate[] value) { throw new System.PlatformNotSupportedException(System.SR.SystemSecurityCryptography_PlatformNotSupported); } 3875public bool Contains(System.Security.Cryptography.X509Certificates.X509Certificate value) { throw new System.PlatformNotSupportedException(System.SR.SystemSecurityCryptography_PlatformNotSupported); } 3876public void CopyTo(System.Security.Cryptography.X509Certificates.X509Certificate[] array, int index) { throw new System.PlatformNotSupportedException(System.SR.SystemSecurityCryptography_PlatformNotSupported); } 3879public int IndexOf(System.Security.Cryptography.X509Certificates.X509Certificate value) { throw new System.PlatformNotSupportedException(System.SR.SystemSecurityCryptography_PlatformNotSupported); } 3880public void Insert(int index, System.Security.Cryptography.X509Certificates.X509Certificate value) { throw new System.PlatformNotSupportedException(System.SR.SystemSecurityCryptography_PlatformNotSupported); } 3882public void Remove(System.Security.Cryptography.X509Certificates.X509Certificate value) { throw new System.PlatformNotSupportedException(System.SR.SystemSecurityCryptography_PlatformNotSupported); } 3886public System.Security.Cryptography.X509Certificates.X509Certificate Current { get { throw new System.PlatformNotSupportedException(System.SR.SystemSecurityCryptography_PlatformNotSupported); } }
System.Security.Cryptography.X509Certificates (1)
System.Security.Cryptography.X509Certificates.cs (1)
17[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.X509Certificates.X509Certificate))]
System.Security.Cryptography.Xml (8)
System\Security\Cryptography\Xml\KeyInfoX509Data.cs (4)
45public KeyInfoX509Data(X509Certificate cert) 50public KeyInfoX509Data(X509Certificate cert, X509IncludeOption includeOption) 110public void AddCertificate(X509Certificate certificate) 256foreach (X509Certificate certificate in _certificates)
System\Security\Cryptography\Xml\SignedXmlDebugLog.cs (4)
215X509Certificate? certificate = key as X509Certificate; 762internal static void LogVerifyKeyUsage(SignedXml signedXml, X509Certificate certificate, X509KeyUsageExtension keyUsages) 944internal static void LogVerifyX509Chain(SignedXml signedXml, X509Chain chain, X509Certificate certificate)
System.Security.Permissions (7)
System\Security\Permissions\PublisherIdentityPermission.cs (2)
13public PublisherIdentityPermission(X509Certificate certificate) { } 15public X509Certificate Certificate { get; set; }
System\Security\Policy\Publisher.cs (3)
13public Publisher(X509Certificate cert) { } 14public X509Certificate Certificate { get { return default(X509Certificate); } }
System\Security\Policy\PublisherMembershipCondition.cs (2)
10public PublisherMembershipCondition(X509Certificate certificate) { } 11public X509Certificate Certificate { get; set; }
System.ServiceModel.NetFramingBase (3)
System\ServiceModel\Channels\SslStreamSecurityUpgradeProvider.cs (3)
396private static X509Certificate SelectClientCertificate(object sender, string targetHost, 397X509CertificateCollection localCertificates, X509Certificate remoteCertificate, string[] acceptableIssuers) 402private bool ValidateRemoteCertificate(object sender, X509Certificate certificate, X509Chain chain,
Templates.Blazor.Tests (2)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
906/// <see cref="X509Certificate.Equals(X509Certificate?)"/> is not adequate for security purposes.
Templates.Blazor.WebAssembly.Auth.Tests (2)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
906/// <see cref="X509Certificate.Equals(X509Certificate?)"/> is not adequate for security purposes.
Templates.Blazor.WebAssembly.Tests (2)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
906/// <see cref="X509Certificate.Equals(X509Certificate?)"/> is not adequate for security purposes.
Templates.Mvc.Tests (2)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
906/// <see cref="X509Certificate.Equals(X509Certificate?)"/> is not adequate for security purposes.
Templates.Tests (2)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
906/// <see cref="X509Certificate.Equals(X509Certificate?)"/> is not adequate for security purposes.
WindowsBase.Tests (3)
System\IO\Packaging\PackageDigitalSignatureManagerTests.cs (3)
70var c = new X509Certificate(); 222var c = new X509Certificate(); 244var c = new X509Certificate();