1234567module juptune.data.x509.asn1convert;
Result x509FromDerBytes(
const ubyte[] derBytes,
Certificate asn1Cert,
X509Certificate cert
);
A helper function that decodes raw DER bytes into its ASN.1 Certificatetype, before passing the certificate into x509FromAsn1.
Please adhear to x509FromAsn1's notes, since they all apply to this function as well (namely the lifetime of certMUST be directly tied to derBytes).
Anything that x509FromAsn1can throw.
Anything that asn1DecodeComponentHeadercan throw.
Anything that Certificate.fromDecodingcan throw.
An errorful Resultif something went wrong.