The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

WWW::LetsEncrypt::Message::Registration - ACME registration message

SYNOPSIS

        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...

DESCRIPTION

This class implements the two-step process for registering a Let's Encrypt account.

Attributes

contact
        an array reference that contains a list of valid contact information
        strings.
agreement
        a scalar string that holds the URI to the agreement, a truthy value
        here denotes acceptance of said agreement!
id
        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.

Public Functions

$Obj->update_only()

Object function that marks the Registration message as being only used for updates to the ACME account.

Output

        nothing