https://github.com/secomind/cfxxl
CFSSL API client for Elixir
https://github.com/secomind/cfxxl
cfssl cfssl-api elixir
Last synced: 5 months ago
JSON representation
CFSSL API client for Elixir
- Host: GitHub
- URL: https://github.com/secomind/cfxxl
- Owner: secomind
- License: apache-2.0
- Created: 2017-09-19T13:02:13.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-03-23T14:44:43.000Z (about 5 years ago)
- Last Synced: 2025-04-30T00:13:17.914Z (12 months ago)
- Topics: cfssl, cfssl-api, elixir
- Language: Elixir
- Homepage:
- Size: 68.4 KB
- Stars: 8
- Watchers: 2
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
CFXXL [](https://hex.pm/packages/cfxxl) [](https://travis-ci.org/ispirata/cfxxl) [](https://coveralls.io/github/ispirata/cfxxl)
============
An Elixir client for [CFSSL](https://github.com/cloudflare/cfssl).
## Installation
Add `cfxxl` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[{:cfxxl, "~> 0.3.0"}]
end
```
## Documentation
The documentation is available on [HexDocs](https://hexdocs.pm/cfxxl/0.1.0/CFXXL.html)
## Usage examples
Create a client pointing to the CFSSL API
```elixir
client = CFXXL.Client.new("http://localhost:8888")
```
Use the client to call the functions in the `CFXXL` module
```elixir
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)
```