package tls

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

Install

Dune Dependency

Authors

Maintainers

Sources

tls-0.10.6.tbz
md5=fa5d1ae3e5c3ee09b515550f8d2ecdfa
sha256=36a61fcd4b08ae099538d9e71e8d24f518f5be4f735d0384c0e19da0496dbfb4
sha512=b36d2df5d8f5e1faffc26dbf486f59c90678f7dbd809cc770fd0f2fbb4b015fd634c50543be8522af0cbafd85bebbcb34579a34bdf149d5d8ed5fa253240db24

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 : ?hash_whitelist:Nocrypto.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 Nocrypto.Hash.hash * ([ `host ] Domain_name.t * Cstruct.t) list | `Hex_key_fingerprints of Nocrypto.Hash.hash * ([ `host ] Domain_name.t * string) list | `Cert_fingerprints of Nocrypto.Hash.hash * ([ `host ] Domain_name.t * Cstruct.t) list | `Hex_cert_fingerprints of Nocrypto.Hash.hash * ([ `host ] 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.