acme v0.5.1 Acme.OpenSSL
Helper module for generating private keys and CSR by calling out to OpenSSL
Link to this section Summary
Functions
Take a private key path and a subject map, generate a new signed SR in DER format
Link to this section Functions
Link to this function
generate_csr(private_key_path, subject)
Take a private key path and a subject map, generate a new signed SR in DER format.
Example
subject = %{
common_name: "example.acme.com",
organization_name: "Acme INC.",
organizational_unit: "HR",
locality_name: "New York",
state_or_province: "NY",
country_name: "United States"
}
{:ok, csr} = Acme.OpenSSL.generate_csr("/path/to/your/private_key.pem", subject)
#=> {:ok, <<DER-encoded CSR>>
Link to this function
generate_key(arg)
Link to this function
generate_key(arg, key_path)
Link to this function
openssl(args)