package piaf

  1. Overview
  2. Docs
type t = {
  1. address : Eio.Net.Sockaddr.stream;
  2. certificate : Cert.t * Cert.t;
  3. cacert : Cert.t option;
    (*

    Either the certificates string or path to a file with certificates to verify peer. Both should be in PEM format

    *)
  4. capath : string option;
    (*

    The path to a directory which contains CA certificates in PEM format

    *)
  5. min_tls_version : Versions.TLS.t;
  6. max_tls_version : Versions.TLS.t;
  7. allow_insecure : bool;
    (*

    Wether to allow insecure server connections

    *)
  8. enforce_client_cert : bool;
}
val create : ?cacert:Cert.t -> ?capath:string -> ?min_tls_version:Versions.TLS.t -> ?max_tls_version:Versions.TLS.t -> ?allow_insecure:bool -> ?enforce_client_cert:bool -> address:Eio.Net.Sockaddr.stream -> (Cert.t * Cert.t) -> t
OCaml

Innovation. Community. Security.