updated pki modules
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Paul 2024-04-20 17:22:34 +02:00
parent 621c8d64af
commit 15fafd4fff

View File

@ -37,7 +37,7 @@ def get_pki_cert(url="http://pki",
headers={"Content-Type":"application/json"})
authstring = base64.b64encode(f"{username}:{password}".encode()).decode()
req.add_header("Authorization", f"Basic {authstring}")
jsondata = json.dumps(domains)
jsondata = json.dumps({"domains":domains})
res = urlopen(req, jsondata.encode('utf-8'))
resj = json.loads(res.read())