This commit is contained in:
parent
621c8d64af
commit
15fafd4fff
@ -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())
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user