mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-06 22:42:30 +00:00
api: ACME renew: handle error from revoking old cert gracefully
this normally just means that the old cert is already expired, we do not care for that - after all: we got a new (renewed) valid cert successfully. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
34b53ccc82
commit
25beb9038c
@ -301,7 +301,8 @@ __PACKAGE__->register_method ({
|
|||||||
die "$@\n" if $@;
|
die "$@\n" if $@;
|
||||||
|
|
||||||
print "Revoking old certificate\n";
|
print "Revoking old certificate\n";
|
||||||
$acme->revoke_certificate($old_cert);
|
eval { $acme->revoke_certificate($old_cert) };
|
||||||
|
warn "Revoke request to CA failed: $@" if $@;
|
||||||
};
|
};
|
||||||
|
|
||||||
return $rpcenv->fork_worker("acmerenew", undef, $authuser, $realcmd);
|
return $rpcenv->fork_worker("acmerenew", undef, $authuser, $realcmd);
|
||||||
|
Loading…
Reference in New Issue
Block a user