40 references to NotAfter
dotnet-dev-certs (2)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
171currentDate <= certificate.NotAfter && 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 (2)
FrameworkFork\System.ServiceModel\System\IdentityModel\Claims\X509CertificateClaimSet.cs (1)
86_expirationTime = _certificate.NotAfter.ToUniversalTime();
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\X509SecurityToken.cs (1)
99_expirationTime = _certificate.NotAfter.ToUniversalTime();
InMemory.FunctionalTests (2)
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (2)
230new DateTimeOffset(_cert.NotAfter), 288_cert.NotAfter.Subtract(nestingBuffer),
Microsoft.AspNetCore.Authentication.Certificate (1)
CertificateValidationCache.cs (1)
54var notAfter = certificate.NotAfter.ToUniversalTime();
Microsoft.AspNetCore.DeveloperCertificates.XPlat (2)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
171currentDate <= certificate.NotAfter && 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)
65Assert.Equal(now.AddYears(1).LocalDateTime, httpsCertificate.NotAfter); 309var wrongSubjectCertificate = csr.CreateSelfSigned(httpsCertificate.NotBefore, httpsCertificate.NotAfter);
Microsoft.AspNetCore.Server.Kestrel.Core (3)
CertificateLoader.cs (1)
46.OrderByDescending(certificate => certificate.NotAfter))
src\Shared\CertificateGeneration\CertificateManager.cs (2)
171currentDate <= certificate.NotAfter && 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 (2)
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (2)
230new DateTimeOffset(_cert.NotAfter), 288_cert.NotAfter.Subtract(nestingBuffer),
Microsoft.AspNetCore.Testing.Tests (1)
FakeCertificateFactoryTests.cs (1)
22Assert.True(DateTime.Now < certificate.NotAfter - TimeSpan.FromHours(1));
Microsoft.DotNet.SignCheckLibrary (2)
Verification\VsixVerifier.cs (2)
102timestamp.ExpiryDate = certificate.NotAfter; 169bool certExpired = DateTime.Now > certificate.NotAfter;
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.Net.Security (3)
System\Net\Security\SslStream.Protocol.cs (3)
799DateTime expiry = certificateContext.TargetCertificate.NotAfter; 803if (cert.NotAfter < expiry) 805expiry = cert.NotAfter;
System.Security.Cryptography (5)
System\Security\Cryptography\X509Certificates\CertificateRequest.cs (2)
671if (notAfterLocal > issuerCertificate.NotAfter) 677issuerCertificate.NotAfter),
System\Security\Cryptography\X509Certificates\ManagedCertificateFinder.cs (2)
131FindCore(normalized, static (normalized, cert) => cert.NotBefore <= normalized && normalized <= cert.NotAfter); 145FindCore(normalized, static (normalized, cert) => cert.NotAfter < normalized);
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (1)
539sb.AppendLine(FormatDate(NotAfter));
System.Security.Cryptography.Pkcs (1)
System\Security\Cryptography\Pkcs\Rfc3161TimestampToken.cs (1)
225if (tsaCertificate.NotAfter < tokenInfo.Timestamp ||
Templates.Blazor.Tests (2)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
171currentDate <= certificate.NotAfter && 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)
171currentDate <= certificate.NotAfter && 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)
171currentDate <= certificate.NotAfter && 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)
171currentDate <= certificate.NotAfter && 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)
171currentDate <= certificate.NotAfter && 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()}";