Module X509.Encoding.Pem.Certificate

module Certificate: sig .. end

Decoding and encoding of X509 certificates in PEM format


PEM encoded certificates

val of_pem_cstruct : Cstruct.t -> X509.t list

of_pem_cstruct pem is t list, where all certificates of the pem are extracted

val of_pem_cstruct1 : Cstruct.t -> X509.t

of_pem_cstruct1 pem is t, where the single certificate of the pem is extracted

val to_pem_cstruct : X509.t list -> Cstruct.t

to_pem_cstruct certificates is pem, the pem encoded certificates.

val to_pem_cstruct1 : X509.t -> Cstruct.t

to_pem_cstruct1 certificate is pem, the pem encoded certificate.