summary refs log tree commit diff
path: root/crypto/src/asn1/x509/Rfc5280Asn1Utilities.cs
blob: 89923660937331e98f0fbcfee2bcb39c5738a2b5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
using System;

using Org.BouncyCastle.Utilities.Date;

namespace Org.BouncyCastle.Asn1.X509
{
    internal class Rfc5280Asn1Utilities
    {
        internal static DerGeneralizedTime CreateGeneralizedTime(DateTime dateTime) =>
            new DerGeneralizedTime(DateTimeUtilities.WithPrecisionSecond(dateTime));

        internal static DerUtcTime CreateUtcTime(DateTime dateTime) => new DerUtcTime(dateTime, 2049);
    }
}