Skip to content

openx/erlang-certifi

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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] ).

You can also retrieve the path to the file and load it by yourself if needed:

Path = certifi:cacertfile().

Build & test

$ rebar3 eunit

Packages

No packages published

Languages

  • Erlang 93.8%
  • Makefile 6.2%