40 references to NotBefore
dotnet-dev-certs (2)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
170certificate.NotBefore <= currentDate && 858$"{c.Thumbprint} - {c.Subject} - Valid from {c.NotBefore:u} to {c.NotAfter:u} - IsHttpsDevelopmentCertificate: {IsHttpsDevelopmentCertificate(c).ToString().ToLowerInvariant()} - IsExportable: {Instance.IsExportable(c).ToString().ToLowerInvariant()}";
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\X509SecurityToken.cs (1)
88_effectiveTime = _certificate.NotBefore.ToUniversalTime();
InMemory.FunctionalTests (5)
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (5)
229new DateTimeOffset(_cert.NotBefore), 287_cert.NotBefore.Add(nestingBuffer), 332thisUpdate = _cert.NotBefore; 402writer.WriteUtcTime(_cert.NotBefore); 583_cert.NotBefore,
Microsoft.AspNetCore.DeveloperCertificates.XPlat (2)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
170certificate.NotBefore <= currentDate && 858$"{c.Thumbprint} - {c.Subject} - Valid from {c.NotBefore:u} to {c.NotAfter:u} - IsHttpsDevelopmentCertificate: {IsHttpsDevelopmentCertificate(c).ToString().ToLowerInvariant()} - IsExportable: {Instance.IsExportable(c).ToString().ToLowerInvariant()}";
Microsoft.AspNetCore.DeveloperCertificates.XPlat.Tests (2)
CertificateManagerTests.cs (2)
64Assert.Equal(now.LocalDateTime, httpsCertificate.NotBefore); 309var wrongSubjectCertificate = csr.CreateSelfSigned(httpsCertificate.NotBefore, httpsCertificate.NotAfter);
Microsoft.AspNetCore.Server.Kestrel.Core (2)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
170certificate.NotBefore <= currentDate && 858$"{c.Thumbprint} - {c.Subject} - Valid from {c.NotBefore:u} to {c.NotAfter:u} - IsHttpsDevelopmentCertificate: {IsHttpsDevelopmentCertificate(c).ToString().ToLowerInvariant()} - IsExportable: {Instance.IsExportable(c).ToString().ToLowerInvariant()}";
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (5)
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (5)
229new DateTimeOffset(_cert.NotBefore), 287_cert.NotBefore.Add(nestingBuffer), 332thisUpdate = _cert.NotBefore; 402writer.WriteUtcTime(_cert.NotBefore); 583_cert.NotBefore,
Microsoft.AspNetCore.Testing.Tests (1)
FakeCertificateFactoryTests.cs (1)
21Assert.True(DateTime.Now > certificate.NotBefore + TimeSpan.FromHours(1));
Microsoft.DotNet.SignCheckLibrary (1)
Verification\VsixVerifier.cs (1)
101timestamp.EffectiveDate = certificate.NotBefore;
Security.TransportSecurity.IntegrationTests (2)
Tcp\ClientCredentialTypeTests.OSX.cs (2)
126if (now > certificate.NotAfter || now < certificate.NotBefore) 129$"The usage time '{now}' does not fall between NotBefore time '{certificate.NotBefore}' and NotAfter time '{certificate.NotAfter}'.");
System.Security.Cryptography (5)
System\Security\Cryptography\X509Certificates\CertificateRequest.cs (2)
651if (notBeforeLocal < issuerCertificate.NotBefore) 657issuerCertificate.NotBefore),
System\Security\Cryptography\X509Certificates\ManagedCertificateFinder.cs (2)
131FindCore(normalized, static (normalized, cert) => cert.NotBefore <= normalized && normalized <= cert.NotAfter); 138FindCore(normalized, static (normalized, cert) => cert.NotBefore > normalized);
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (1)
533sb.AppendLine(FormatDate(NotBefore));
System.Security.Cryptography.Pkcs (2)
System\Security\Cryptography\Pkcs\CmsSigner.cs (1)
341chain.ChainPolicy.VerificationTime = Certificate!.NotBefore;
System\Security\Cryptography\Pkcs\Rfc3161TimestampToken.cs (1)
226tsaCertificate.NotBefore > tokenInfo.Timestamp)
Templates.Blazor.Tests (2)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
170certificate.NotBefore <= currentDate && 858$"{c.Thumbprint} - {c.Subject} - Valid from {c.NotBefore:u} to {c.NotAfter:u} - IsHttpsDevelopmentCertificate: {IsHttpsDevelopmentCertificate(c).ToString().ToLowerInvariant()} - IsExportable: {Instance.IsExportable(c).ToString().ToLowerInvariant()}";
Templates.Blazor.WebAssembly.Auth.Tests (2)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
170certificate.NotBefore <= currentDate && 858$"{c.Thumbprint} - {c.Subject} - Valid from {c.NotBefore:u} to {c.NotAfter:u} - IsHttpsDevelopmentCertificate: {IsHttpsDevelopmentCertificate(c).ToString().ToLowerInvariant()} - IsExportable: {Instance.IsExportable(c).ToString().ToLowerInvariant()}";
Templates.Blazor.WebAssembly.Tests (2)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
170certificate.NotBefore <= currentDate && 858$"{c.Thumbprint} - {c.Subject} - Valid from {c.NotBefore:u} to {c.NotAfter:u} - IsHttpsDevelopmentCertificate: {IsHttpsDevelopmentCertificate(c).ToString().ToLowerInvariant()} - IsExportable: {Instance.IsExportable(c).ToString().ToLowerInvariant()}";
Templates.Mvc.Tests (2)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
170certificate.NotBefore <= currentDate && 858$"{c.Thumbprint} - {c.Subject} - Valid from {c.NotBefore:u} to {c.NotAfter:u} - IsHttpsDevelopmentCertificate: {IsHttpsDevelopmentCertificate(c).ToString().ToLowerInvariant()} - IsExportable: {Instance.IsExportable(c).ToString().ToLowerInvariant()}";
Templates.Tests (2)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
170certificate.NotBefore <= currentDate && 858$"{c.Thumbprint} - {c.Subject} - Valid from {c.NotBefore:u} to {c.NotAfter:u} - IsHttpsDevelopmentCertificate: {IsHttpsDevelopmentCertificate(c).ToString().ToLowerInvariant()} - IsExportable: {Instance.IsExportable(c).ToString().ToLowerInvariant()}";