Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Latest commit

 

History

History
29 lines (22 loc) · 672 Bytes

README.md

File metadata and controls

29 lines (22 loc) · 672 Bytes

certifi

This Erlang library contains a CA bundle that you can reference in your Erlang application. This is useful for systems that do not have CA bundles that Erlang can find itself, or where a uniform set of CAs is valuable.

This an Erlang specific port of certifi. The CA bundle is derived from Mozilla's canonical set.

Usage

Cacerts = certifi:cacerts(),
Ssloptions = [{verify, verify_peer},
              {depth, 99},
              {cacerts, Cacerts}],
ssl:connect( "example.com", 443, Ssloptions] ).

Build

$ rebar3 compile

Regenerate the certificates

$ ./mkcert.escript