package ca-certs-nss

  1. Overview
  2. Docs
X.509 trust anchors extracted from Mozilla's NSS

Install

Dune Dependency

Authors

Maintainers

Sources

ca-certs-nss-v3.57.tbz
sha256=32f788541ec68398d1f365ecc85c25dc3f1c7239ce1cc5f15ccc1ef0cd52011e
sha512=f23edfe257d2e27c1af666a2d15bd4e3a52ff9d1798fef3e83ea5c6aecfe1a6eb666f32292effdfbab61585ca701a988cc9b697d63dd19e26c0238e308b30877

doc/src/ca-certs-nss/ca_certs_nss.ml.html

Source file ca_certs_nss.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module Make (C : Mirage_clock.PCLOCK) = struct
  let authenticator =
    let tas =
      List.fold_left
        (fun acc data ->
          let open Rresult.R.Infix in
          acc >>= fun acc ->
          X509.Certificate.decode_der (Cstruct.of_string data) >>| fun cert ->
          cert :: acc)
        (Ok []) Trust_anchor.certificates
    and time () = Some (Ptime.v (C.now_d_ps ())) in
    fun ?crls ?hash_whitelist () ->
      match tas with
      | Ok t ->
          Ok (X509.Authenticator.chain_of_trust ~time ?crls ?hash_whitelist t)
      | Error e -> Error e
end
OCaml

Innovation. Community. Security.