mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 04:19:26 +08:00
Update cert_request.py
This commit is contained in:
@@ -295,7 +295,7 @@ class cert_request:
|
||||
|
||||
# 获请ACME请求头
|
||||
def getAcmeHeader(self, url):
|
||||
nonce = self.getNonce(force=True)
|
||||
nonce = self.getNonce()
|
||||
|
||||
header = {"alg": "RS256", "nonce": nonce, "url": url}
|
||||
if url in [self.__apis['newAccount'], 'GET_THUMBPRINT']:
|
||||
@@ -546,7 +546,11 @@ class cert_request:
|
||||
{"protected": protected64, "payload": payload64, "signature": signature64})
|
||||
headers.update({"Content-Type": "application/jose+json"})
|
||||
response = requests.post(
|
||||
url, data=data.encode("utf8"), timeout=self.__acme_timeout, headers=headers, verify=self.__verify
|
||||
url,
|
||||
data=data.encode("utf8"),
|
||||
timeout=self.__acme_timeout,
|
||||
headers=headers,
|
||||
verify=self.__verify
|
||||
)
|
||||
# 更新随机数
|
||||
self.updateReplayNonce(response)
|
||||
|
||||
Reference in New Issue
Block a user