mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-05-14 01:16:59 +00:00
Fixes #5242
This commit is contained in:
parent
58f10093a0
commit
3d2f89345f
2 changed files with 2 additions and 2 deletions
|
|
@ -69,7 +69,7 @@ class HTTPSConnection(_http_client.HTTPSConnection):
|
|||
sock = create_sock()
|
||||
if protocol not in _contexts:
|
||||
_contexts[protocol] = ssl.SSLContext(protocol)
|
||||
if getattr(self, "cert_file") and getattr(self, "key_file"):
|
||||
if getattr(self, "cert_file", None) and getattr(self, "key_file", None):
|
||||
_contexts[protocol].load_cert_chain(certfile=self.cert_file, keyfile=self.key_file)
|
||||
try:
|
||||
# Reference(s): https://askubuntu.com/a/1263098
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue