Chef Certificate Generator
C Erlang
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
c_src
include
src
test
.gitignore
AUTHORS
LICENSE
Makefile
README.md
rebar.config

README.md

Chef Certificate Generator (chef_certgen)

Chef Certificate Generator is an Erlang NIF that exposes some of the OpenSSL functionality missing from the builtin Erlang crypto application.

INSTALLING AND RUNNING

  1. Install Erlang R15B01 and rebar

  2. Compile and test:

    cd chef_certgen
    make
    
  3. Test it out

    erl -pa ebin application:start(crypto). chef_certgen:rsa_generate_keypair(2048).

NOTES

Generate a self-signed CA cert for testing

  1. Create the keypair:

    openssl genrsa -out server_key.pem 2048
    
  2. Create the cert:

     openssl req \
       -x509 -nodes -days 3650 \
       -subj '/C=US/ST=Washington/L=Seattle/CN=chef.is.awesome' \
       -new -key server_key.pem -out server_cert.pem
    

CONTRIBUTING

Send us pull requests!

AUTHORS

LICENSE

Apache License, Version 2.0.