X-Git-Url: https://git.rapsys.eu/acme/blobdiff_plain/ad8a3bd744842250ad5c0acd3ea8c312102de9ed..71e9c0c9b8df136c3cde34356fcaad875fe16758:/Acme.pm?ds=inline diff --git a/Acme.pm b/Acme.pm index 134b3d4..2bb0aaf 100644 --- a/Acme.pm +++ b/Acme.pm @@ -71,7 +71,7 @@ use constant { ACME_PROD_DIR => 'https://acme-v01.api.letsencrypt.org/directory', # Version - VERSION => 'v0.9', + VERSION => '1.3', }; # User agent object @@ -324,7 +324,7 @@ sub directory { my $time = time; # Set directory - my $dir = $self->{prod} ? ACME_PROD_DIR : ACME_DIR; + my $dir = $self->{domain}{prod} ? ACME_PROD_DIR : ACME_DIR; # Create a request my $req = HTTP::Request->new(GET => $dir.'?'.$time); @@ -602,10 +602,10 @@ sub authorize { } @{$self->{domains}}; # Init max run - my $remaining = 10; + my $remaining = 300; # Poll pending - while (--$remaining >= 0 and scalar map { $_->{status} eq 'valid' ? 1 : (); } values %{$self->{challenges}}) { + while (--$remaining >= 0 and scalar map { $_->{status} eq 'pending' ? 1 : (); } values %{$self->{challenges}}) { # Sleep sleep(1); # Poll remaining pending