Certbot v0.5.1 Certbot.Acme.Authorization View Source
Module for handling an Acme.Authorization
response, converted from an
%Acme.Authorization{}
struct
Link to this section Summary
Functions
Fetch specific challenge by type from an authorization struct
Link to this section Types
Link to this section Functions
Link to this function
fetch_challenge(authorization, type)
View Sourcefetch_challenge(Certbot.Acme.Authorization.t(), String.t()) :: any()
Fetch specific challenge by type from an authorization struct
Possible types: http-01
dns-01
tls-sni-01
Example
iex> Certbot.Acme.Authorization.fetch_challenge(%Certbot.Acme.Authorization{challenges: []}, "http-01")
nil
iex> challenge = %Certbot.Acme.Challenge{type: "http-01"}
iex> Certbot.Acme.Authorization.fetch_challenge(%Certbot.Acme.Authorization{challenges: [challenge]}, "http-01")
%Certbot.Acme.Challenge{
status: nil,
token: nil,
type: "http-01",
uri: nil
}
Link to this function
from_map(authorization)
View Sourcefrom_map(Acme.Authorization.t()) :: Certbot.Acme.Authorization.t()