package castore

  1. Overview
  2. Docs
On This Page
  1. Getting Started
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

CAStore 🦫

A portable pure OCaml CA Store, with no dependencies, inspired by Elixir's :castore.

Getting Started

First, install castore in your switch:

# latest published version
opam install castore

# latest development version
opam pin castore git+https://github.com/leostera/castore

Now we can add it to your dune project dependencies:

(package
 ;...
 (depends
   (castore (>= "0.0.0")
   ...)
 ...)

And to your dune stanzas:

(executable
  (name my_app)
  (libraries castore))

And finally we can use it when creating your applications TLs config:

let authenticator = make_auth Ca_store.pem in
(* ... *)

For an example of how to use this, check out the Blink.Transport.Ssl.Auth module.

OCaml

Innovation. Community. Security.