Skip to content

Commit bc8e4a2

Browse files
committed
Improve certificate pinning
1 parent 8655591 commit bc8e4a2

File tree

2 files changed

+1
-77
lines changed

2 files changed

+1
-77
lines changed

keyauth.crt

Lines changed: 0 additions & 76 deletions
This file was deleted.

keyauth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ def __do_request(self, post_data):
278278
headers = {"User-Agent": "KeyAuth"}
279279

280280
rq_out = requests.post(
281-
"https://keyauth.com/api/1.0/", data=post_data, headers=headers, verify="keyauth.crt"
281+
"https://keyauth.com/api/1.0/", data=post_data, headers=headers # local certificate removed, not needed for SSL pinning and less secure than current procedure
282282
)
283283

284284
return rq_out.text

0 commit comments

Comments
 (0)