27 references to CreateSelfSigned
dotnet-dev-certs (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
786var result = request.CreateSelfSigned(notBefore, notAfter);
HttpStress (1)
Program.cs (1)
402X509Certificate2 cert = certReq.CreateSelfSigned(DateTimeOffset.UtcNow.AddMonths(-1), DateTimeOffset.UtcNow.AddMonths(1));
IIS.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (1)
50var parentCert = parentRequest.CreateSelfSigned(notBefore, notAfter);
IIS.LongTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (1)
50var parentCert = parentRequest.CreateSelfSigned(notBefore, notAfter);
IIS.NewHandler.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (1)
50var parentCert = parentRequest.CreateSelfSigned(notBefore, notAfter);
IIS.NewShim.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (1)
50var parentCert = parentRequest.CreateSelfSigned(notBefore, notAfter);
IIS.ShadowCopy.Tests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (1)
50var parentCert = parentRequest.CreateSelfSigned(notBefore, notAfter);
IISExpress.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (1)
50var parentCert = parentRequest.CreateSelfSigned(notBefore, notAfter);
InMemory.FunctionalTests (1)
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (1)
838X509Certificate2 rootCert = rootReq.CreateSelfSigned(start.AddDays(-2), end.AddDays(2));
Microsoft.AspNetCore.Authentication.Test (1)
src\Shared\test\Certificates\Certificates.cs (1)
97return request.CreateSelfSigned(notBefore, notAfter);
Microsoft.AspNetCore.DeveloperCertificates.XPlat (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
786var result = request.CreateSelfSigned(notBefore, notAfter);
Microsoft.AspNetCore.DeveloperCertificates.XPlat.Tests (1)
CertificateManagerTests.cs (1)
309var wrongSubjectCertificate = csr.CreateSelfSigned(httpsCertificate.NotBefore, httpsCertificate.NotAfter);
Microsoft.AspNetCore.HttpOverrides.Tests (1)
src\Shared\test\Certificates\Certificates.cs (1)
97return request.CreateSelfSigned(notBefore, notAfter);
Microsoft.AspNetCore.Server.Kestrel.Core (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
786var result = request.CreateSelfSigned(notBefore, notAfter);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (1)
838X509Certificate2 rootCert = rootReq.CreateSelfSigned(start.AddDays(-2), end.AddDays(2));
Microsoft.AspNetCore.Testing (1)
FakeSslCertificateFactory.cs (1)
42return request.CreateSelfSigned(DateTimeOffset.UtcNow.AddDays(-1), DateTimeOffset.UtcNow.AddYears(1));
System.Security.Cryptography (4)
System\Security\Cryptography\X509Certificates\CertificateRequest.cs (4)
65/// This key will be used as a private key if <see cref="CreateSelfSigned" /> is called. 93/// This key will be used as a private key if <see cref="CreateSelfSigned" /> is called. 120/// This key will be used as a private key if <see cref="CreateSelfSigned" /> is called. 153/// This key will be used as a private key if <see cref="CreateSelfSigned" /> is called.
Templates.Blazor.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
786var result = request.CreateSelfSigned(notBefore, notAfter);
Templates.Blazor.WebAssembly.Auth.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
786var result = request.CreateSelfSigned(notBefore, notAfter);
Templates.Blazor.WebAssembly.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
786var result = request.CreateSelfSigned(notBefore, notAfter);
Templates.Mvc.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
786var result = request.CreateSelfSigned(notBefore, notAfter);
Templates.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
786var result = request.CreateSelfSigned(notBefore, notAfter);
WebTransportInteractiveSampleApp (1)
Program.cs (1)
194using var crt = req.CreateSelfSigned(now, now.AddDays(14)); // 14 days is the max duration of a certificate for this
WebTransportSampleApp (1)
Program.cs (1)
80using var crt = req.CreateSelfSigned(now, now.AddDays(14)); // 14 days is the max duration of a certificate for this