79 references to CertificateExtensions
dotnet-dev-certs (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
783request.CertificateExtensions.Add(extension);
HttpStress (3)
Program.cs (3)
399certReq.CertificateExtensions.Add(new X509BasicConstraintsExtension(false, false, 0, false)); 400certReq.CertificateExtensions.Add(new X509EnhancedKeyUsageExtension(new OidCollection { new Oid("1.3.6.1.5.5.7.3.1") }, false)); 401certReq.CertificateExtensions.Add(new X509KeyUsageExtension(X509KeyUsageFlags.DigitalSignature, false));
IIS.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (3)
34parentRequest.CertificateExtensions.Add( 41parentRequest.CertificateExtensions.Add( 44parentRequest.CertificateExtensions.Add(
IIS.LongTests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (3)
34parentRequest.CertificateExtensions.Add( 41parentRequest.CertificateExtensions.Add( 44parentRequest.CertificateExtensions.Add(
IIS.NewHandler.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (3)
34parentRequest.CertificateExtensions.Add( 41parentRequest.CertificateExtensions.Add( 44parentRequest.CertificateExtensions.Add(
IIS.NewShim.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (3)
34parentRequest.CertificateExtensions.Add( 41parentRequest.CertificateExtensions.Add( 44parentRequest.CertificateExtensions.Add(
IIS.ShadowCopy.Tests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (3)
34parentRequest.CertificateExtensions.Add( 41parentRequest.CertificateExtensions.Add( 44parentRequest.CertificateExtensions.Add(
IISExpress.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (3)
34parentRequest.CertificateExtensions.Add( 41parentRequest.CertificateExtensions.Add( 44parentRequest.CertificateExtensions.Add(
InMemory.FunctionalTests (10)
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (10)
214req.CertificateExtensions.Add(ext); 217req.CertificateExtensions.Add(cdpExtension); 218req.CertificateExtensions.Add(aiaExtension); 267request.CertificateExtensions.Add(extension); 274request.CertificateExtensions.Add(_cdpExtension); 275request.CertificateExtensions.Add(_aiaExtension); 278request.CertificateExtensions.Add(_akidExtension); 279request.CertificateExtensions.Add( 829rootReq.CertificateExtensions.Add(caConstraints); 831rootReq.CertificateExtensions.Add(
Microsoft.AspNetCore.Authentication.Test (2)
src\Shared\test\Certificates\Certificates.cs (2)
88request.CertificateExtensions.Add(s_digitalSignatureOnlyUsage); 92request.CertificateExtensions.Add(
Microsoft.AspNetCore.DeveloperCertificates.XPlat (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
783request.CertificateExtensions.Add(extension);
Microsoft.AspNetCore.DeveloperCertificates.XPlat.Tests (1)
CertificateManagerTests.cs (1)
307csr.CertificateExtensions.Add(extension);
Microsoft.AspNetCore.HttpOverrides.Tests (2)
src\Shared\test\Certificates\Certificates.cs (2)
88request.CertificateExtensions.Add(s_digitalSignatureOnlyUsage); 92request.CertificateExtensions.Add(
Microsoft.AspNetCore.Server.Kestrel.Core (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
783request.CertificateExtensions.Add(extension);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (10)
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (10)
214req.CertificateExtensions.Add(ext); 217req.CertificateExtensions.Add(cdpExtension); 218req.CertificateExtensions.Add(aiaExtension); 267request.CertificateExtensions.Add(extension); 274request.CertificateExtensions.Add(_cdpExtension); 275request.CertificateExtensions.Add(_aiaExtension); 278request.CertificateExtensions.Add(_akidExtension); 279request.CertificateExtensions.Add( 829rootReq.CertificateExtensions.Add(caConstraints); 831rootReq.CertificateExtensions.Add(
Microsoft.AspNetCore.Testing (2)
FakeSslCertificateFactory.cs (2)
33request.CertificateExtensions.Add(sanBuilder.Build()); 35request.CertificateExtensions.Add(new X509EnhancedKeyUsageExtension(
System.Security.Cryptography (17)
System\Security\Cryptography\X509Certificates\CertificateRequest.cs (14)
262/// <see cref="CertificateExtensions"/> contains a <see langword="null" /> value. 266/// <see cref="CertificateExtensions"/> contains an entry with a <see langword="null" /> 312/// <see cref="CertificateExtensions"/> contains a <see langword="null" /> value. 316/// <see cref="CertificateExtensions"/> contains an entry with a <see langword="null" /> 338bool hasExtensions = CertificateExtensions.Count > 0; 373attributes[attrCount] = new Pkcs9ExtensionRequest(CertificateExtensions); 400/// <see cref="CertificateExtensions"/> contains a <see langword="null" /> value. 404/// <see cref="CertificateExtensions"/> contains an entry with a <see langword="null" /> 448/// <see cref="CertificateExtensions"/> contains a <see langword="null" /> value. 452/// <see cref="CertificateExtensions"/> contains an entry with a <see langword="null" /> 849if (CertificateExtensions.Count > 0) 851HashSet<string?> usedOids = new HashSet<string?>(CertificateExtensions.Count); 852List<X509ExtensionAsn> extensionAsns = new List<X509ExtensionAsn>(CertificateExtensions.Count); 854foreach (X509Extension extension in CertificateExtensions)
System\Security\Cryptography\X509Certificates\CertificateRequest.Load.cs (2)
253req.CertificateExtensions.Add(rich); 257req.CertificateExtensions.Add(ext);
System\Security\Cryptography\X509Certificates\CertificateRequestLoadOptions.cs (1)
25/// <see cref="CertificateRequest.CertificateExtensions" /> collection based on the PKCS#9
Templates.Blazor.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
783request.CertificateExtensions.Add(extension);
Templates.Blazor.WebAssembly.Auth.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
783request.CertificateExtensions.Add(extension);
Templates.Blazor.WebAssembly.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
783request.CertificateExtensions.Add(extension);
Templates.Mvc.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
783request.CertificateExtensions.Add(extension);
Templates.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
783request.CertificateExtensions.Add(extension);
WebTransportInteractiveSampleApp (3)
Program.cs (3)
185req.CertificateExtensions.Add(new X509EnhancedKeyUsageExtension(new OidCollection 190req.CertificateExtensions.Add(new X509KeyUsageExtension(X509KeyUsageFlags.DigitalSignature, false)); 192req.CertificateExtensions.Add(sanBuilder.Build());
WebTransportSampleApp (3)
Program.cs (3)
71req.CertificateExtensions.Add(new X509EnhancedKeyUsageExtension(new OidCollection 76req.CertificateExtensions.Add(new X509KeyUsageExtension(X509KeyUsageFlags.DigitalSignature, false)); 78req.CertificateExtensions.Add(sanBuilder.Build());