Lockspire.MTLS.Extractor behaviour (lockspire v1.1.1)

Copy Markdown

Behaviour for extracting Mutual TLS (mTLS) client certificates.

Summary

Callbacks

Extracts the raw DER-encoded certificate from the connection.

Callbacks

extract(t, keyword)

@callback extract(
  Plug.Conn.t(),
  keyword()
) :: {:ok, binary()} | {:error, atom()}

Extracts the raw DER-encoded certificate from the connection.