From af0bb45d7370ce99e430ff9ad05df556b92ba9b9 Mon Sep 17 00:00:00 2001 From: Kishi85 Date: Tue, 11 Jun 2019 09:49:06 +0200 Subject: [PATCH] authority.v2: Properly clear the nonce cache on using it's content --- acertmgr/authority/v2.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/acertmgr/authority/v2.py b/acertmgr/authority/v2.py index 0636560..763c293 100644 --- a/acertmgr/authority/v2.py +++ b/acertmgr/authority/v2.py @@ -97,8 +97,11 @@ class ACMEAuthority(AbstractACMEAuthority): # Request a new nonce if there is none in cache if not self.nonce: self._request_url(self.directory['newNonce']) - + # Set request nonce to current cache value protected["nonce"] = self.nonce + # Reset nonce cache as we are using it's current value + self.nonce = None + protected["url"] = url if self.algorithm: protected["alg"] = self.algorithm