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
96adad96dd
commit
12f089b5de
@ -301,7 +301,8 @@ __PACKAGE__->register_method ({
|
||||
die "$@\n" if $@;
|
||||
|
||||
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user