View Source Selfsigned (zerossl v1.1.0)

Module to issue certificate with arbitrary lifetime

This module serves testing purposes.

Summary

Functions

Generate a self-signed 2048 bit RSA key X509 certificate for testing purposes

Functions

Link to this function

gen_cert(hostname, validity_seconds \\ 31_536_000)

View Source
@spec gen_cert(hostname :: binary(), validity_seconds :: integer()) ::
  {key :: binary(), cert :: binary()}

Generate a self-signed 2048 bit RSA key X509 certificate for testing purposes