package tls

  1. Overview
  2. Docs
include module type of struct include X509.Certificate end
val decode_pkcs1_digest_info : Cstruct.t -> (Mirage_crypto.Hash.hash * Cstruct.t, [> `Msg of string ]) Stdlib.result
val encode_pkcs1_digest_info : (Mirage_crypto.Hash.hash * Cstruct.t) -> Cstruct.t
type t = X509.Certificate.t
val pp : t Fmt.t
val decode_der : Cstruct.t -> (t, [> `Msg of string ]) Stdlib.result
val encode_der : t -> Cstruct.t
val decode_pem_multiple : Cstruct.t -> (t list, [> `Msg of string ]) Stdlib.result
val decode_pem : Cstruct.t -> (t, [> `Msg of string ]) Stdlib.result
val encode_pem_multiple : t list -> Cstruct.t
val encode_pem : t -> Cstruct.t
val supports_keytype : t -> X509.Key_type.t -> bool
val public_key : t -> X509.Public_key.t
val signature_algorithm : t -> (X509.Key_type.signature_scheme * Mirage_crypto.Hash.hash) option
val hostnames : t -> X509.Host.Set.t
val supports_hostname : t -> [ `host ] Domain_name.t -> bool
val ips : t -> Ipaddr.Set.t
val supports_ip : t -> Ipaddr.t -> bool
val fingerprint : Mirage_crypto.Hash.hash -> t -> Cstruct.t
val subject : t -> X509.Distinguished_name.t
val issuer : t -> X509.Distinguished_name.t
val serial : t -> Z.t
val validity : t -> Ptime.t * Ptime.t
val extensions : t -> X509.Extension.t
val sexp_of_t : 'a -> Sexplib.Sexp.t
OCaml

Innovation. Community. Security.