Crypt-LE
view release on metacpan or search on metacpan
lib/Crypt/LE.pm view on Meta::CPAN
858859860861862863864865866867868869870871872873874875876877878=head2 update_contacts($array_ref)
Updates contact details for your Let's Encrypt account. Accepts an array reference of contacts.
Non-prefixed contacts will be automatically prefixed with 'mailto:'.
Returns: OK | INVALID_DATA | ERROR.
=cut
sub
update_contacts {
my
(
$self
,
$contacts
) =
@_
;
return
$self
->_status(INVALID_DATA,
"Invalid call parameters."
)
unless
(
$contacts
and (
ref
$contacts
eq
'ARRAY'
));
my
@set
=
map
{ /^\w+:/ ?
$_
:
"mailto:$_"
} @{
$contacts
};
my
(
$status
,
$content
) =
$self
->_request(
$self
->{directory}->{
'reg'
}, {
resource
=>
'reg'
,
contact
=> \
@set
});
return
(
$status
==
$self
->_compat_response(ACCEPTED)) ?
$self
->_status(OK,
"Email has been updated."
) :
$self
->_status(ERROR,
$content
);
}
=head2 request_challenge()
Requests challenges for domains on your CSR. On error you can call failed_domains() method, which returns an array reference to domain names for which
( run in 1.344 second using v1.01-cache-2.11-cpan-49f99fa48dc )