Struct acme_client::Challenge
[−]
[src]
pub struct Challenge<'a> { /* fields omitted */ }
A verification challenge
Methods
impl<'a> Challenge<'a>
[src]
Saves key authorization into {path}/.well-known/acme-challenge/{token}
for http challenge.
fn signature(&self) -> Result<String>
Gets DNS validation signature.
This value is used for verification of domain over DNS. Signature must be saved
as a TXT record for _acme_challenge.example.com
.
fn ctype(&self) -> &str
Returns challenge type, usually http-01
or dns-01
for Let's Encrypt.
fn token(&self) -> &str
Returns challenge token
Returns key_authorization
fn validate(&self) -> Result<()>
Triggers validation.