Skip to content

secomind/cfxxl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CFXXL hex.pm version Build Status Coverage Status

An Elixir client for CFSSL.

Installation

Add cfxxl to your list of dependencies in mix.exs:

def deps do
  [{:cfxxl, "~> 0.3.0"}]
end

Documentation

The documentation is available on HexDocs

Usage examples

Create a client pointing to the CFSSL API

client = CFXXL.Client.new("http://localhost:8888")

Use the client to call the functions in the CFXXL module

hosts = ["www.example.com", "example.com"]
dname = %CFXXL.DName{O: "Example Ltd"}
key = %CFXXL.KeyConfig{algo: :rsa, size: 4096}
new_key = client |> CFXXL.newkey(hosts, dname, key: key)