28 instantiations of X509KeyUsageExtension
dotnet-dev-certs (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
653var keyUsage = new X509KeyUsageExtension(X509KeyUsageFlags.KeyEncipherment | X509KeyUsageFlags.DigitalSignature, critical: true);
HttpStress (1)
Program.cs (1)
401certReq.CertificateExtensions.Add(new X509KeyUsageExtension(X509KeyUsageFlags.DigitalSignature, false));
IIS.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (1)
42new X509KeyUsageExtension(X509KeyUsageFlags.DigitalSignature | X509KeyUsageFlags.NonRepudiation, critical: true));
IIS.LongTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (1)
42new X509KeyUsageExtension(X509KeyUsageFlags.DigitalSignature | X509KeyUsageFlags.NonRepudiation, critical: true));
IIS.NewHandler.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (1)
42new X509KeyUsageExtension(X509KeyUsageFlags.DigitalSignature | X509KeyUsageFlags.NonRepudiation, critical: true));
IIS.NewShim.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (1)
42new X509KeyUsageExtension(X509KeyUsageFlags.DigitalSignature | X509KeyUsageFlags.NonRepudiation, critical: true));
IIS.ShadowCopy.Tests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (1)
42new X509KeyUsageExtension(X509KeyUsageFlags.DigitalSignature | X509KeyUsageFlags.NonRepudiation, critical: true));
IISExpress.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (1)
42new X509KeyUsageExtension(X509KeyUsageFlags.DigitalSignature | X509KeyUsageFlags.NonRepudiation, critical: true));
InMemory.FunctionalTests (3)
src\Servers\Kestrel\shared\test\CertHelper.cs (1)
18new X509KeyUsageExtension(
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (2)
53new X509KeyUsageExtension( 58new X509KeyUsageExtension(
Microsoft.AspNetCore.Authentication.Test (1)
src\Shared\test\Certificates\Certificates.cs (1)
64new X509KeyUsageExtension(X509KeyUsageFlags.DigitalSignature, true);
Microsoft.AspNetCore.DeveloperCertificates.XPlat (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
653var keyUsage = new X509KeyUsageExtension(X509KeyUsageFlags.KeyEncipherment | X509KeyUsageFlags.DigitalSignature, critical: true);
Microsoft.AspNetCore.HttpOverrides.Tests (1)
src\Shared\test\Certificates\Certificates.cs (1)
64new X509KeyUsageExtension(X509KeyUsageFlags.DigitalSignature, true);
Microsoft.AspNetCore.Server.Kestrel.Core (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
653var keyUsage = new X509KeyUsageExtension(X509KeyUsageFlags.KeyEncipherment | X509KeyUsageFlags.DigitalSignature, critical: true);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (3)
src\Servers\Kestrel\shared\test\CertHelper.cs (1)
18new X509KeyUsageExtension(
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (2)
53new X509KeyUsageExtension( 58new X509KeyUsageExtension(
System.Security.Cryptography (1)
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (1)
1501Oids.KeyUsage => new X509KeyUsageExtension(),
System.Security.Cryptography.Pkcs (1)
System\Security\Cryptography\Pkcs\SignerInfo.cs (1)
731keyUsage = new X509KeyUsageExtension();
System.Security.Cryptography.Xml (1)
System\Security\Cryptography\Xml\SignedXml.cs (1)
348X509KeyUsageExtension keyUsage = new X509KeyUsageExtension();
Templates.Blazor.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
653var keyUsage = new X509KeyUsageExtension(X509KeyUsageFlags.KeyEncipherment | X509KeyUsageFlags.DigitalSignature, critical: true);
Templates.Blazor.WebAssembly.Auth.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
653var keyUsage = new X509KeyUsageExtension(X509KeyUsageFlags.KeyEncipherment | X509KeyUsageFlags.DigitalSignature, critical: true);
Templates.Blazor.WebAssembly.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
653var keyUsage = new X509KeyUsageExtension(X509KeyUsageFlags.KeyEncipherment | X509KeyUsageFlags.DigitalSignature, critical: true);
Templates.Mvc.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
653var keyUsage = new X509KeyUsageExtension(X509KeyUsageFlags.KeyEncipherment | X509KeyUsageFlags.DigitalSignature, critical: true);
Templates.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
653var keyUsage = new X509KeyUsageExtension(X509KeyUsageFlags.KeyEncipherment | X509KeyUsageFlags.DigitalSignature, critical: true);
WebTransportInteractiveSampleApp (1)
Program.cs (1)
190req.CertificateExtensions.Add(new X509KeyUsageExtension(X509KeyUsageFlags.DigitalSignature, false));
WebTransportSampleApp (1)
Program.cs (1)
76req.CertificateExtensions.Add(new X509KeyUsageExtension(X509KeyUsageFlags.DigitalSignature, false));
37 references to X509KeyUsageExtension
dotnet-dev-certs (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
653var keyUsage = new X509KeyUsageExtension(X509KeyUsageFlags.KeyEncipherment | X509KeyUsageFlags.DigitalSignature, critical: true);
dotnet-svcutil-lib (2)
CmdCredentialsProvider.cs (2)
91X509KeyUsageExtension keyUsage = extension as X509KeyUsageExtension;
InMemory.FunctionalTests (3)
src\Servers\Kestrel\shared\test\CertHelper.cs (1)
17private static readonly X509KeyUsageExtension s_eeKeyUsage =
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (2)
52private static readonly X509KeyUsageExtension s_caKeyUsage = 57private static readonly X509KeyUsageExtension s_eeKeyUsage =
Microsoft.AspNetCore.Authentication.Test (1)
src\Shared\test\Certificates\Certificates.cs (1)
63private static readonly X509KeyUsageExtension s_digitalSignatureOnlyUsage =
Microsoft.AspNetCore.DeveloperCertificates.XPlat (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
653var keyUsage = new X509KeyUsageExtension(X509KeyUsageFlags.KeyEncipherment | X509KeyUsageFlags.DigitalSignature, critical: true);
Microsoft.AspNetCore.DeveloperCertificates.XPlat.Tests (1)
CertificateManagerTests.cs (1)
76e => e is X509KeyUsageExtension keyUsage &&
Microsoft.AspNetCore.HttpOverrides.Tests (1)
src\Shared\test\Certificates\Certificates.cs (1)
63private static readonly X509KeyUsageExtension s_digitalSignatureOnlyUsage =
Microsoft.AspNetCore.Server.Kestrel.Core (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
653var keyUsage = new X509KeyUsageExtension(X509KeyUsageFlags.KeyEncipherment | X509KeyUsageFlags.DigitalSignature, critical: true);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (3)
src\Servers\Kestrel\shared\test\CertHelper.cs (1)
17private static readonly X509KeyUsageExtension s_eeKeyUsage =
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (2)
52private static readonly X509KeyUsageExtension s_caKeyUsage = 57private static readonly X509KeyUsageExtension s_eeKeyUsage =
netstandard (1)
netstandard.cs (1)
1974[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.X509Certificates.X509KeyUsageExtension))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
881[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.X509Certificates.X509KeyUsageExtension))]
System.Net.Http (2)
src\libraries\Common\src\System\Net\Security\CertificateHelper.cs (2)
76else if ((extension is X509KeyUsageExtension ku) && !IsValidForDigitalSignatureUsage(ku)) 102private static bool IsValidForDigitalSignatureUsage(X509KeyUsageExtension ku)
System.Security.Cryptography (10)
System\Security\Cryptography\CryptoConfig.cs (1)
258ht.Add("2.5.29.15", typeof(X509Certificates.X509KeyUsageExtension));
System\Security\Cryptography\X509Certificates\CertificateRequest.cs (2)
687var keyUsage = (X509KeyUsageExtension?)issuerCertificate.Extensions[Oids.KeyUsage];
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.Build.cs (2)
151var keyUsage = (X509KeyUsageExtension?)issuerCertificate.Extensions[Oids.KeyUsage];
System\Security\Cryptography\X509Certificates\ECDsaCertificateExtensions.cs (2)
59X509KeyUsageExtension ext = (X509KeyUsageExtension)extension;
System\Security\Cryptography\X509Certificates\ManagedCertificateFinder.cs (2)
262var kuExt = (X509KeyUsageExtension)ext;
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (1)
1514if (extension.Oid?.Value == Oids.KeyUsage && extension is X509KeyUsageExtension ext)
System.Security.Cryptography.Pkcs (1)
System\Security\Cryptography\Pkcs\SignerInfo.cs (1)
729if (!(ext is X509KeyUsageExtension keyUsage))
System.Security.Cryptography.X509Certificates (1)
System.Security.Cryptography.X509Certificates.cs (1)
38[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.X509Certificates.X509KeyUsageExtension))]
System.Security.Cryptography.Xml (2)
System\Security\Cryptography\Xml\SignedXml.cs (1)
348X509KeyUsageExtension keyUsage = new X509KeyUsageExtension();
System\Security\Cryptography\Xml\SignedXmlDebugLog.cs (1)
762internal static void LogVerifyKeyUsage(SignedXml signedXml, X509Certificate certificate, X509KeyUsageExtension keyUsages)
Templates.Blazor.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
653var keyUsage = new X509KeyUsageExtension(X509KeyUsageFlags.KeyEncipherment | X509KeyUsageFlags.DigitalSignature, critical: true);
Templates.Blazor.WebAssembly.Auth.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
653var keyUsage = new X509KeyUsageExtension(X509KeyUsageFlags.KeyEncipherment | X509KeyUsageFlags.DigitalSignature, critical: true);
Templates.Blazor.WebAssembly.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
653var keyUsage = new X509KeyUsageExtension(X509KeyUsageFlags.KeyEncipherment | X509KeyUsageFlags.DigitalSignature, critical: true);
Templates.Mvc.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
653var keyUsage = new X509KeyUsageExtension(X509KeyUsageFlags.KeyEncipherment | X509KeyUsageFlags.DigitalSignature, critical: true);
Templates.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
653var keyUsage = new X509KeyUsageExtension(X509KeyUsageFlags.KeyEncipherment | X509KeyUsageFlags.DigitalSignature, critical: true);