Marmos
v juptune
v asn1
v lang
v ast
v Classes
v Enums
v ir
v parser
v Enums
v Structs
v core
v crypto
v keyexchange
v memory
v data
v alphabet
v buffer
v json
v builder
v parser
v Enums
v Structs
v serialise
v Structs
v Templates
v pem
v Enums
v Structs

Functions x509FromDerBytes

1
2
3
4
5
6
7
module juptune.data.x509.asn1convert;

Result x509FromDerBytes(
    const ubyte[] derBytes, 
    Certificate asn1Cert, 
    X509Certificate cert
);

Documentation

A helper function that decodes raw DER bytes into its ASN.1 Certificatetype, before passing the certificate into x509FromAsn1.

Notes

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).

Params

Throws

Anything that x509FromAsn1can throw.

Anything that asn1DecodeComponentHeadercan throw.

Anything that Certificate.fromDecodingcan throw.

Returns

An errorful Resultif something went wrong.