From bef38210f3f380e9a9b7144a2f6ab1a9bdd6b587 Mon Sep 17 00:00:00 2001 From: Le Yao Date: Tue, 28 Nov 2023 12:16:20 +0800 Subject: [PATCH] core: fix the ssl verification issue Signed-off-by: Le Yao --- cnap/core/keybroker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cnap/core/keybroker.py b/cnap/core/keybroker.py index c2e4950..08b141c 100644 --- a/cnap/core/keybroker.py +++ b/cnap/core/keybroker.py @@ -140,7 +140,7 @@ def get_key(self, server_url: str, key_id: str) -> bytes: resp = None for _ in range(RETRY_TIMES): try: - resp = requests.post(server_url, json=req_body, headers=headers, verify=False, + resp = requests.post(server_url, json=req_body, headers=headers, verify=True, timeout=TIMEOUT) if resp.status_code in HTTP_OK: break