31 references to NotBefore
aspire (3)
Certificates\CertificateGeneration\CertificateManager.cs (2)
222return certificate.NotBefore <= currentDate && 1043$"{c.Thumbprint} - {c.Subject} - Valid from {c.NotBefore:u} to {c.NotAfter:u} - IsHttpsDevelopmentCertificate: {IsHttpsDevelopmentCertificate(c).ToString().ToLowerInvariant()} - IsExportable: {IsExportable(c).ToString().ToLowerInvariant()}";
Certificates\NativeCertificateToolRunner.cs (1)
38ValidityNotBefore = cert.NotBefore,
Aspire.Hosting (1)
DeveloperCertificateService.cs (1)
189.Where(c => c.NotBefore <= now && now <= c.NotAfter)
dotnet-dev-certs (3)
Program.cs (1)
528ValidityNotBefore = cert.NotBefore,
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (2)
224return certificate.NotBefore <= currentDate && 1046$"{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();
Microsoft.AspNetCore.DeveloperCertificates.XPlat (2)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (2)
224return certificate.NotBefore <= currentDate && 1046$"{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 (2)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (2)
224return certificate.NotBefore <= currentDate && 1046$"{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.Testing.Tests (1)
FakeCertificateFactoryTests.cs (1)
21Assert.True(DateTime.Now > certificate.NotBefore + TimeSpan.FromHours(1));
NuGet.Packaging (5)
Signing\Timestamp\Rfc3161TimestampVerificationUtility.cs (1)
22DateTimeOffset signerCertBegin = DateTime.SpecifyKind(signerCertificate.NotBefore, DateTimeKind.Local);
Signing\Utility\CertificateUtility.cs (4)
55issues.Add(SignatureLog.MinimalLog($"{indentation}{string.Format(CultureInfo.CurrentCulture, Strings.CertUtilityCertificateValidity, cert.NotBefore, cert.NotAfter)}")); 78certStringBuilder.AppendLine(indentation + string.Format(CultureInfo.CurrentCulture, Strings.CertUtilityCertificateValidity, cert.NotBefore, cert.NotAfter)); 268return DateTime.Now < certificate.NotBefore; 274DateTimeOffset signerCertBegin = DateTime.SpecifyKind(certificate.NotBefore, DateTimeKind.Local);
RepoTasks (2)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (2)
224return certificate.NotBefore <= currentDate && 1046$"{c.Thumbprint} - {c.Subject} - Valid from {c.NotBefore:u} to {c.NotAfter:u} - IsHttpsDevelopmentCertificate: {IsHttpsDevelopmentCertificate(c).ToString().ToLowerInvariant()} - IsExportable: {Instance.IsExportable(c).ToString().ToLowerInvariant()}";
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 (3)
System\Security\Cryptography\X509Certificates\CertificateRequest.cs (2)
846if (notBeforeLocal < issuerCertificate.NotBefore) 852issuerCertificate.NotBefore),
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (1)
538sb.AppendLine(FormatDate(NotBefore));
System.Security.Cryptography.Pkcs (2)
System\Security\Cryptography\Pkcs\CmsSigner.cs (1)
456chain.ChainPolicy.VerificationTime = Certificate!.NotBefore;
System\Security\Cryptography\Pkcs\Rfc3161TimestampToken.cs (1)
220tsaCertificate.NotBefore > tokenInfo.Timestamp)
System.ServiceModel.Primitives (4)
System\IdentityModel\Selectors\X509CertificateValidator.cs (3)
154Contract.Assert(now.Kind == certificate.NotAfter.Kind && now.Kind == certificate.NotBefore.Kind, ""); 156if (now > certificate.NotAfter || now < certificate.NotBefore) 159SecurityUtils.GetCertificateId(certificate), now, certificate.NotBefore, certificate.NotAfter));
System\IdentityModel\Tokens\X509SecurityToken.cs (1)
90_effectiveTime = _certificate.NotBefore.ToUniversalTime();