Net::ACME::Certificate::Pending - for when the cert isn’t ready yet
my $need_retry = Net::ACME::Certificate::Pending->new( uri => 'http://path/to/cert', retry_after => 30, #i.e., retry after 30 seconds ); my $cert; while (!$cert) { if ($need_retry->is_time_to_poll()) { $cert = $need_retry->poll(); } sleep 1; }
To install Net::ACME, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::ACME
CPAN shell
perl -MCPAN -e shell install Net::ACME
For more information on module installation, please visit the detailed CPAN module installation guide.