Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 1.02 KB

README.md

File metadata and controls

35 lines (24 loc) · 1.02 KB

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)