X509 v0.1.0 X509.Certificate View Source

Module for issuing and working with X.509 certificates.

For conversion to and from PEM or DER format, use the generic functions in the X509 module.

Link to this section Summary

Types

t()

:Certificate record , as used in Erlang’s :public_key module

Functions

Looks up the value of a specific extension in a certificate

Returns the list of extensions included in a certificate

Returns the Issuer field of a certificate

Returns the public key embedded in a certificate

Generates a new self-signed certificate

Returns the Subject field of a certificate

Returns the Validity of a certificate

Link to this section Types

:Certificate record , as used in Erlang’s :public_key module

Link to this section Functions

Looks up the value of a specific extension in a certificate.

The desired extension can be specified as an atom or an OID value. Returns nil if the specified extension is not present in the certificate.

Returns the list of extensions included in a certificate.

Returns the Issuer field of a certificate.

Link to this function new(public_key, subject_rdn, issuer, issuer_key, opts \\ []) View Source

Issues a new certificate.

Link to this function public_key(arg) View Source
public_key(t()) :: X509.PublicKey.t()

Returns the public key embedded in a certificate.

Link to this function self_signed(private_key, subject_rdn, opts \\ []) View Source
self_signed(X509.PrivateKey.t(), String.t() | X509.RDNSequence.t(), Keyword.t()) ::
  t()

Generates a new self-signed certificate.

Returns the Subject field of a certificate.

Returns the Validity of a certificate.