Certified (certified v0.1.0)

View Source

The central point for calling into Certified.

Summary

Functions

Generates a complete set of options for :ssl.handshake/2.

Types

server_options()

@type server_options() :: [:ssl.tls_server_option()]

Functions

generate_transport_options()

@spec generate_transport_options() :: server_options()

Generates a complete set of options for :ssl.handshake/2.

This uses the Thousand Island transport_options config defined in your Phoenix Endpoints config, plus updated TLS keys and certs resolved using the Acme config in your environment.

Examples

iex> Certified.generate_transport_options()
[
  certs_keys: [
    %{certfile: "mycert.pem", keyfile: "mykey.pem"}
  ]
]