notBefore property

DateTime? get notBefore

Gets the notBefore date from the validity period of the certificate.

Implementation

DateTime? get notBefore {
  var data = block1
      ?.atIndex(X509BlockPosition.dateValidity)
      ?.subAtIndex(0)
      ?.value;
  return data is DateTime ? data : null;
}