Net::ACME2::Challenge::http_01
#e.g., “/.well-known/acme-challenge/12341243sdafdewrsvfd” my $path = $challenge->path(); { my $handler = $challenge->create_handler( ... ); $acme->accept_challenge($challenge); sleep 1 while !$acme->poll_authorization(); }
This module is instantiated by Net::ACME2::Authorization and is a subclass of Net::ACME2::Challenge.
Creates a file in the given DOCROOT that will, if served up normally, satisfy ACME’s requirements for this challenge. The return value is an object that, when DESTROYed, will remove that file.
(KEY_AUTHZ is the return of the Net::ACME2 instance’s make_key_authorization() method.)
make_key_authorization()
This can simplify the authorization process if you’re on the same server as all of the authorization object’s identifiers’ HTTP document roots.
Returns the URL path that needs to serve up the key authorization. This is useful if, for whatever reason, you’re not using create_handler() to satisfy this challenge.
create_handler()
Example:
/.well-known/acme-challenge/LoqXcYV8q5ONbJQxbmR7SCTNo3tiAXDfowyjxAjEuX0
To install Net::ACME2, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::ACME2
CPAN shell
perl -MCPAN -e shell install Net::ACME2
For more information on module installation, please visit the detailed CPAN module installation guide.