notBefore property
DateTime
notBefore
The start time which this certificate is valid.
Implementation
DateTime get notBefore {
final validity = _tbs.elements![_offset + 4] as ASN1Sequence;
final time = validity.elements![0];
if (time is ASN1UtcTime) {
return time.time!;
}
if (time is ASN1GeneralizedTime) {
return time.dateTimeValue!.toUtc();
}
throw Exception('Unable to decode time');
}