HTTPoxyScan icon indicating copy to clipboard operation
HTTPoxyScan copied to clipboard

SSL: CERTIFICATE_VERIFY_FAILED

Open tit0n opened this issue 9 years ago • 3 comments

For some reason you create an ssl context (ctx)

20 ctx = ssl.create_default_context() 21 ctx.check_hostname = False 22 ctx.verify_mode = ssl.CERT_NONE

But you are not using that context when calling

84 resp = urllib2.urlopen(req)

IMHO, the call should be smthg like this:

84 resp = urllib2.urlopen(req, context=ctx)

This should avoid errors such as urllib2.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)>

tit0n avatar Dec 18 '16 23:12 tit0n

hey, thanks for the heads up.. I'll look to implement the above shortly.

1N3 avatar Dec 20 '16 02:12 1N3

Oh I have a pull request in for that

LockeLamora avatar Aug 09 '17 10:08 LockeLamora

This should be fixed now thanks to @LockeLamora. Closing out but let us know if you're still having issues.

1N3 avatar Aug 09 '17 15:08 1N3