]> git.proxmox.com Git - pve-manager-legacy.git/commitdiff
api acme: reduce verification delays
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sun, 3 May 2020 16:43:40 +0000 (18:43 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sun, 3 May 2020 16:46:12 +0000 (18:46 +0200)
As proxmox-acme has now a default delay for DNS challenge plugins,
which is the important one. Those are just for not overloading the
acme servers with a lot of requests, but once the challenge was
propagate they have it verified pretty quickly, so reduce delay for
checking validation after first requesting it down to 10 seconds

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/API2/ACME.pm

index 3eda78f5cd5c99241e2605993e4e6e2bf45bdd33..0389f373ff1a6834802eb8b44b26181f04433771 100644 (file)
@@ -85,13 +85,13 @@ my $order_certificate = sub {
                    if !defined($data->{url});
 
                $acme->request_challenge_validation($data->{url});
-               print "Sleeping for 30 seconds\n";
-               sleep 30;
+               print "Sleeping for 10 seconds\n";
+               sleep 10;
                while (1) {
                    $auth = $acme->get_authorization($auth_url);
                    if ($auth->{status} eq 'pending') {
-                       print "Status is still 'pending', trying again in 30 seconds\n";
-                       sleep 30;
+                       print "Status is still 'pending', trying again in 20 seconds\n";
+                       sleep 20;
                        next;
                    } elsif ($auth->{status} eq 'valid') {
                        print "Status is 'valid', domain '$domain' OK!\n";