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, [> Rresult.R.msg ]) Rresult.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, [> Rresult.R.msg ]) Rresult.result
val encode_der : t -> Cstruct.t
val decode_pem_multiple : Cstruct.t -> (t list, [> Rresult.R.msg ]) Rresult.result
val decode_pem : Cstruct.t -> (t, [> Rresult.R.msg ]) Rresult.result
val encode_pem_multiple : t list -> Cstruct.t
val encode_pem : t -> Cstruct.t
type key_type = [
  1. | `EC of Asn.oid
  2. | `RSA
]
val supports_keytype : t -> key_type -> bool
val public_key : t -> X509.Public_key.t
val signature_algorithm : t -> ([ `ECDSA | `RSA ] * Mirage_crypto.Hash.hash) option
val hostnames : t -> X509.Host.Set.t
val supports_hostname : t -> [ `host ] Domain_name.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 t_of_sexp : 'a -> 'b
val sexp_of_t : 'a -> Sexplib.Sexp.t
OCaml

Innovation. Community. Security.