asn1Issuer property Null safety

ASN1Sequence asn1Issuer

The issuer of the certificate represented as asn1.

Implementation

ASN1Sequence get asn1Issuer {
  final issuer = ASN1Object.fromBytes(
    ASN1Parser(_tbs.elements![_offset + 3].encode()).nextObject().encode(),
  );
  final serial = ASN1Object.fromBytes(
    ASN1Parser(_tbs.elements![_offset + 1].encode()).nextObject().encode(),
  );

  return ASN1Sequence(elements: [issuer, serial]);
}