package tls

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

Install

Dune Dependency

Authors

Maintainers

Sources

tls-0.10.4.tbz
sha256=24d5f7200ceb526bc8d1513c72dbe641a15012d3b0bba3387b85aaee9e052317
sha512=c0e246c3e5e81cb8ba6f171869694d83ae948757098b144009c7e357b3deb722b42393270a20434f1d2c82769ff519c64aa6374c471b04c38d39a5729bf60a21

doc/tls.lwt/X509_lwt/index.html

Module X509_lwt

X.509 certificate handling using Lwt.

type priv = X509.Certificate.t list * Nocrypto.Rsa.priv

private material: a certificate chain and a RSA private key

type authenticator = X509.Authenticator.t

authenticator

val 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.

val 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.

val 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.

val authenticator : [ `Ca_file of Lwt_io.file_name | `Ca_dir of Lwt_io.file_name | `Key_fingerprints of Nocrypto.Hash.hash * ('a Domain_name.t * Cstruct.t) list | `Hex_key_fingerprints of Nocrypto.Hash.hash * ('a Domain_name.t * string) list | `No_authentication_I'M_STUPID ] -> authenticator Lwt.t

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

OCaml

Innovation. Community. Security.