A.Info
A.Info

Reputation: 107

How to solve SSL certificate error

We are just hitting the url using

finalurl="http://www.myurl.com"
req=urllib.request.Request(finalurl)
html = urllib.request.urlopen(req)

we get output as:

ssl certificate error

Upvotes: 1

Views: 1144

Answers (1)

Himanshu dua
Himanshu dua

Reputation: 2523

Use verify as 'False' as quick hack:

requests.get('https://www.myurl.com', verify=True)

Or use SSL Cert Verification

requests.get('https://github.com', verify='/path/to/certfile')

Upvotes: 2

Related Questions