X509.Test.CRLServer (X509 v0.9.2)

View Source

Simple CRL responder for use in test suites.

Summary

Functions

Returns a specification to start this module under a supervisor.

Returns the TCP port number on which the specified X509.Test.Server instance is listening.

Adds or updates the CRL at the given path.

Starts a CRL responder.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

get_port(pid)

@spec get_port(pid()) :: :inet.port_number()

Returns the TCP port number on which the specified X509.Test.Server instance is listening.

put_crl(pid, path, crl)

@spec put_crl(pid(), String.t(), X509.CRL.t()) :: :ok

Adds or updates the CRL at the given path.

start_link(opts)

@spec start_link(Keyword.t()) :: GenServer.on_start()

Starts a CRL responder.

Options:

  • :port - the TCP port to listen on; defaults to 0, meaning an ephemeral port is selected by the operating system, which may be retrieved using get_port/1