gitconnected logo
gitconnected logo
Resume BuilderTutorialsBlogSlackFind a Job
Coding News
Learn to Code
Search
Blog
Resume Builder
Find a Job
Sign Up / Log In
Continue with GitHub
Sign In
Frank He @heshanfu
38 karma |
2

Disable SSL certificate validation in Python

Disable SSL certificate validation in Python

I’m writing a script that connects to a bunch of URLs over HTTPS, downloads their SSL certificate and extracts the CN. Everything works except when I stumble on a site with an invalid SSL certificate. I absolutely do not care if the certificate is valid or not. I just want the CN but Python stubbornly refuses to extract the certificate information if the certificate is not validated. Is there any way to get around this profoundly stupid behavior?

pythonquestion.com

Join gitconnected
Gitconnected is here to connect developers. Follow the top coding news. Create a profile to display your projects and portfolio. Learn more.
Sign up / Sign in
Join gitconnected
Gitconnected is here to connect developers. Follow the top coding news. Create a profile to display your projects and portfolio. Learn more.
Sign up / Sign in
Have egg
@trendingtechnology