···11+## ISC License
22+33+Copyright (c) 2019, The MirageOS contributors
44+55+Permission to use, copy, modify, and/or distribute this software for any
66+purpose with or without fee is hereby granted, provided that the above
77+copyright notice and this permission notice appear in all copies.
88+99+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
1010+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
1111+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
1212+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
1313+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
1414+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
1515+OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+7
README.md
···11+## ca-certs - detect root CA certificates from the operating system
22+33+TLS requires a set of root anchors (Certificate Authorities) to authenticate
44+servers. This library exposes this list so that it can be registered with
55+[ocaml-tls].
66+77+[ocaml-tls]: https://github.com/mirleft/ocaml-tls
+33
ca-certs.opam
···11+# This file is generated by dune, edit dune-project instead
22+opam-version: "2.0"
33+synopsis: "Detect root CA certificates from the operating system"
44+description: """
55+TLS requires a set of root anchors (Certificate Authorities) to
66+authenticate servers. This library exposes this list so that it can be
77+registered with ocaml-tls.
88+"""
99+maintainer: ["Etienne Millon <me@emillon.org>"]
1010+authors: ["Etienne Millon <me@emillon.org>"]
1111+license: "ISC"
1212+homepage: "https://github.com/mirage/ca-certs"
1313+doc: "https://mirage.github.io/ca-certs/doc"
1414+bug-reports: "https://github.com/mirage/ca-certs/issues"
1515+depends: [
1616+ "dune" {>= "1.11"}
1717+]
1818+build: [
1919+ ["dune" "subst"] {pinned}
2020+ [
2121+ "dune"
2222+ "build"
2323+ "-p"
2424+ name
2525+ "-j"
2626+ jobs
2727+ "@install"
2828+ "@runtest" {with-test}
2929+ "@doc" {with-doc}
3030+ ]
3131+]
3232+dev-repo: "git+https://github.com/mirage/ca-certs.git"
3333+tags: ["org:mirage"]
···11+(lang dune 1.11)
22+(name ca-certs)
33+44+(generate_opam_files true)
55+(source (github mirage/ca-certs))
66+(documentation "https://mirage.github.io/ca-certs/doc")
77+(license ISC)
88+(maintainers "Etienne Millon <me@emillon.org>")
99+(authors "Etienne Millon <me@emillon.org>")
1010+1111+(package
1212+ (name ca-certs)
1313+ (depends)
1414+ (synopsis "Detect root CA certificates from the operating system")
1515+ (description
1616+ "\> TLS requires a set of root anchors (Certificate Authorities) to
1717+ "\> authenticate servers. This library exposes this list so that it can be
1818+ "\> registered with ocaml-tls.
1919+ )
2020+ ; tags are not included before (lang dune 2.0)
2121+ ; so an opam template is necessary until then
2222+ (tags (org:mirage)))
···11+val detect : unit -> [> `Ca_file of Lwt_io.file_name ] option Lwt.t
22+(** Detect root CAs in the operating system's trust store.
33+ Returns [None] if detection did not succeed. The variants correspond to the
44+ ones used in [X509_lwt] in [ocaml-tls]. *)