1# [certifi](https://github.com/certifi/erlang-certifi)
2
3[![Build Status](https://github.com/certifi/erlang-certifi/workflows/build/badge.svg)](https://github.com/certifi/erlang-certifi)
4
5This Erlang library contains a CA bundle that you can reference in your Erlang
6application. This is useful for systems that do not have CA bundles that
7Erlang can find itself, or where a uniform set of CAs is valuable.
8
9This an Erlang specific port of [certifi](https://certifi.io/). The CA bundle
10is derived from Mozilla's canonical set.
11
12## Usage
13
14```erlang
15CaCerts = certifi:cacerts(),
16SslOptions = [{verify, verify_peer},
17              {depth, 99},
18              {cacerts, CaCerts}],
19ssl:connect( "example.com", 443, SslOptions ).
20```
21
22
23You can also retrieve the path to the file and load it by yourself if needed:
24
25```erlang
26Path = certifi:cacertfile().
27```
28
29## Build & test
30
31```shell
32$ rebar3 eunit
33```
34