diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2024-05-26 17:22:18 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2024-05-26 17:22:18 +0700 |
commit | 81718ad166d0dd458ed070e753d1f4bfcc40593d (patch) | |
tree | 6cd467fa88c23738900b2bf90de73f704fe46298 /crypto/src/x509/X509V2CRLGenerator.cs | |
parent | Add KemRecipientInfo (diff) | |
download | BouncyCastle.NET-ed25519-81718ad166d0dd458ed070e753d1f4bfcc40593d.tar.xz |
Auto-adjust DateTime precision for GeneralizedTime in X.509 (and OCSP)
- see https://github.com/bcgit/bc-csharp/issues/474
Diffstat (limited to '')
-rw-r--r-- | crypto/src/x509/X509V2CRLGenerator.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/x509/X509V2CRLGenerator.cs b/crypto/src/x509/X509V2CRLGenerator.cs index 358dc63de..c4ea990d2 100644 --- a/crypto/src/x509/X509V2CRLGenerator.cs +++ b/crypto/src/x509/X509V2CRLGenerator.cs @@ -112,7 +112,7 @@ namespace Org.BouncyCastle.X509 DateTime invalidityDate) { tbsGen.AddCrlEntry(new DerInteger(userCertificate), new Time(revocationDate), reason, - new Asn1GeneralizedTime(invalidityDate)); + Rfc5280Asn1Utilities.CreateGeneralizedTime(invalidityDate)); } /** |