Use new ASN.1 and principal APIs.