tbsCertificate()->subject()); } /** * Initialize from ASN.1. * * @param UnspecifiedType $el CHOICE */ public static function fromASN1(UnspecifiedType $el): self { if (! $el->isTagged()) { throw new UnexpectedValueException('v1Form issuer not supported.'); } $tagged = $el->asTagged(); return match ($tagged->tag()) { 0 => V2Form::fromV2ASN1($tagged->asImplicit(Element::TYPE_SEQUENCE)->asSequence()), default => throw new UnexpectedValueException('Unsupported issuer type.'), }; } }