certificateIssuer property

List<String>? get certificateIssuer

Implementation

List<String>? get certificateIssuer {
  var sequence = valueAsBlock?.subAtIndex(0)?.sub;
  if (sequence == null) {
    return null;
  }
  ASN1Object? sub;
  try {
    sub = sequence.firstWhere(
        (element) => element.identifier?.tagNumber().toValue() == 1);
    List<String>? result;
    if (sub.sub != null) {
      result = <String>[];
      sub.sub?.forEach((e) {
        var name = generalName(item: e);
        if (name != null) {
          result!.add(name);
        }
      });
    }
    return result;
  } catch (e) {}
  return null;
}