WWW::LetsEncrypt::Message::Authorization
use WWW::LetsEncrypt::Message::Authorization; my $JWK = ...; my $AuthMsg = WWW::LetsEncrypt::Message::Authorization->new({ challenge => 'http-01', # Optional, domain => 'example.tld', # Required, }); # Step 1: Request Auth Token my $result = $AuthMsg->do_request(); die 'failed' if !$result->{successful}; my $challenge_token_name = $result->{token}; my $challenge_token_data = $result->{content}; # Do a thing to make token/content consumable by Let's Encrypt # (eg: populate .well-known/acme/$challenge_token_name with $challenge_token_data # Step 2: Submit Auth Challenge $result = $AuthMsg->do_request() die 'failed' if !$result->{successful}; # Step 3...: Polling $result = $AuthMsg->do_request(); ... #sleep maybe? goto 3 or not
This class provides an method for authorizing a domain, currently by http-01.
(Includes all attributes inherited from WWW::LetsEncrypt::Message)
an attribute that holds a string of the challenge method. Current implemented methods include:
a string attribute that holds the domain you are trying to authorize.
To install WWW::LetsEncrypt, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::LetsEncrypt
CPAN shell
perl -MCPAN -e shell install WWW::LetsEncrypt
For more information on module installation, please visit the detailed CPAN module installation guide.