An Elixir client for CFSSL.
Add cfxxl
to your list of dependencies in mix.exs
:
def deps do
[{:cfxxl, "~> 0.3.0"}]
end
The documentation is available on HexDocs
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)