package letsencrypt

  1. Overview
  2. Docs

Parameters

Signature

val initialise : ?ctx:Client.ctx -> ?directory:Uri.t -> Nocrypto.Rsa.priv -> (t, [ `Msg of string ]) Stdlib.result Lwt.t
val sign_certificate : ?ctx:Client.ctx -> ?solver:solver_t -> t -> (unit -> unit Lwt.t) -> X509.Signing_request.t -> (X509.Certificate.t, [ `Msg of string ]) Stdlib.result Lwt.t

get_crt ~directory_url ~solver sleep rsa_pem csr_pem asks the CA identified at url directory for signing csr_pem with account key account_pem for all domains in csr_pem. This functions accepts an optionl argument solver specifying how to solve the challenge provided by the CA. The result is either a string result cotaining the pem-encoded signed certificate, or an error with a string describing what went wrong.

OCaml

Innovation. Community. Security.