44 references to NotAfter
dotnet-dev-certs (3)
Program.cs (1)
526ValidityNotAfter = cert.NotAfter,
src\Shared\CertificateGeneration\CertificateManager.cs (2)
193currentDate <= certificate.NotAfter && 903$"{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)
193currentDate <= certificate.NotAfter && 903$"{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)
193currentDate <= certificate.NotAfter && 903$"{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));
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)
800DateTime expiry = certificateContext.TargetCertificate.NotAfter; 804if (cert.NotAfter < expiry) 806expiry = cert.NotAfter;
System.Security.Cryptography (5)
System\Security\Cryptography\X509Certificates\CertificateRequest.cs (2)
866if (notAfterLocal > issuerCertificate.NotAfter) 872issuerCertificate.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)
544sb.AppendLine(FormatDate(NotAfter));
System.Security.Cryptography.Pkcs (1)
System\Security\Cryptography\Pkcs\Rfc3161TimestampToken.cs (1)
219if (tsaCertificate.NotAfter < tokenInfo.Timestamp ||
System.ServiceModel.Primitives (5)
System\IdentityModel\Claims\X509CertificateClaimSet.cs (1)
94_expirationTime = _certificate.NotAfter.ToUniversalTime();
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)
104_expirationTime = _certificate.NotAfter.ToUniversalTime();
Templates.Blazor.Tests (2)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
193currentDate <= certificate.NotAfter && 903$"{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)
193currentDate <= certificate.NotAfter && 903$"{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)
193currentDate <= certificate.NotAfter && 903$"{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)
193currentDate <= certificate.NotAfter && 903$"{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)
193currentDate <= certificate.NotAfter && 903$"{c.Thumbprint} - {c.Subject} - Valid from {c.NotBefore:u} to {c.NotAfter:u} - IsHttpsDevelopmentCertificate: {IsHttpsDevelopmentCertificate(c).ToString().ToLowerInvariant()} - IsExportable: {Instance.IsExportable(c).ToString().ToLowerInvariant()}";