diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-11-07 20:04:44 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-11-07 20:09:45 +0700 |
commit | cf2633e7cd4f2d29f4e3e56a3d3b81b11e254a41 (patch) | |
tree | eb551d7ad27a4f5651bcca69fdc2caf85da13b6d /crypto/src/x509/X509Certificate.cs | |
parent | fixed use of property (diff) | |
download | BouncyCastle.NET-ed25519-cf2633e7cd4f2d29f4e3e56a3d3b81b11e254a41.tar.xz |
Overhaul UTCTime classes
Diffstat (limited to 'crypto/src/x509/X509Certificate.cs')
-rw-r--r-- | crypto/src/x509/X509Certificate.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/x509/X509Certificate.cs b/crypto/src/x509/X509Certificate.cs index 627903e1f..510f95b01 100644 --- a/crypto/src/x509/X509Certificate.cs +++ b/crypto/src/x509/X509Certificate.cs @@ -205,9 +205,9 @@ namespace Org.BouncyCastle.X509 DateTime time) { if (time.CompareTo(NotAfter) > 0) - throw new CertificateExpiredException("certificate expired on " + c.EndDate.GetTime()); + throw new CertificateExpiredException("certificate expired on " + c.EndDate); if (time.CompareTo(NotBefore) < 0) - throw new CertificateNotYetValidException("certificate not valid until " + c.StartDate.GetTime()); + throw new CertificateNotYetValidException("certificate not valid until " + c.StartDate); } /// <summary> |