package tls

  1. Overview
  2. Docs
Transport Layer Security purely in OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

tls-v0.12.8.tbz
sha256=ca889a1593780b896be5139037865e7de21e620088b2c0e9d3d65565ddbef769
sha512=da21f3d1fc5e02feac774be8a1568e9acb2218d0ffdbd8551a845210969d16ce537a46badb03fb424dc0d3f31593bd0cc3f0d16b80a7e02c7ad287f8dd1ea977

doc/tls.lwt/X509_lwt/index.html

Module X509_lwtSource

X.509 certificate handling using Lwt.

Sourcetype priv = X509.Certificate.t list * Mirage_crypto_pk.Rsa.priv

private material: a certificate chain and a RSA private key

Sourcetype authenticator = X509.Authenticator.t

authenticator

Sourceval private_of_pems : cert:Lwt_io.file_name -> priv_key:Lwt_io.file_name -> priv Lwt.t

private_of_pems ~cert ~priv_key is priv, after reading the private key and certificate chain from the given PEM-encoded files.

Sourceval certs_of_pem : Lwt_io.file_name -> X509.Certificate.t list Lwt.t

certs_of_pem file is certificates, which are read from the PEM-encoded file.

Sourceval certs_of_pem_dir : Lwt_io.file_name -> X509.Certificate.t list Lwt.t

certs_of_pem_dir dir is certificates, which are read from all PEM-encoded files in dir.

Sourceval authenticator : ?hash_whitelist:Mirage_crypto.Hash.hash list -> ?crls:Lwt_io.file_name -> [ `Ca_file of Lwt_io.file_name | `Ca_dir of Lwt_io.file_name | `Key_fingerprints of Mirage_crypto.Hash.hash * ([ `host ] Domain_name.t * Cstruct.t) list | `Hex_key_fingerprints of Mirage_crypto.Hash.hash * ([ `host ] Domain_name.t * string) list | `Cert_fingerprints of Mirage_crypto.Hash.hash * ([ `host ] Domain_name.t * Cstruct.t) list | `Hex_cert_fingerprints of Mirage_crypto.Hash.hash * ([ `host ] Domain_name.t * string) list ] -> authenticator Lwt.t

authenticator methods constructs an authenticator using the specified method and data.

OCaml

Innovation. Community. Security.