WWW::LetsEncrypt::Message::Registration - ACME registration message
use WWW::LetsEncrypt::Message::Registration; my $JWK = ...; # Step 1 Register my $RegMsg = WWW::LetsEncrypt::Message::Registration->new({ JWK => $JWK, contact => ['mailto:noreply@example.tld', ...], nonce => 'NONCE_VALUE', }); my $result = $RegMsg->do_request(); #handle $result ... # Step 2 Agreement $RegMsg->agreement('URL_TO_CURRENT_AGREEMENT'); $result = $RegMsg->do_request(); #handle result...
This class implements the two-step process for registering a Let's Encrypt account.
an array reference that contains a list of valid contact information strings.
a scalar string that holds the URI to the agreement, a truthy value here denotes acceptance of said agreement!
a scalar integer that represents the ACME account ID, necessary when updating any account detail. This value will be automatically set after a registration occurs.
Object function that marks the Registration message as being only used for updates to the ACME account.
Output
nothing
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.