An X.509 certificate generation utility for Erlang in Rust NIF.
It use rcgen crate internally to provide X.509 certificate generation functionalities.
For Elixir, add ercgen as a dependency in your mix.exs:
defp deps do
[{:ercgen, "~> 0.1.0"}]
endFor Erlang, add ercgen to your Erlang application's dependencies in your rebar.config:
{deps, [
{ercgen, "0.1.0"}
]}.- Erlang/OTP 27 and above
- Rust 1.89 and above
ercgen:signed_by/4Generate an X.509 certificate signed by a given CA. Used for creating self-signed certificates.ercgen:default_certificate_params/0Provides default parameters for certificate generation.ercgen:check_certificate_params/1Validates the provided certificate parameters.ercgen:generate_rsa_private_key/0Generates a new RSA key pair.ercgen:rsa_public_key_to_pem/1Converts an RSA public key to PEM format.ercgen:rsa_private_key_to_der/1Converts an RSA private key to DER format.
This project is licensed under the Apache-2.0 License. See the LICENSE file for details.