简体   繁体   中英

Using certifi in urllib3

I am new to python programming. Can anybody please tell if there will be any problem in fetching data from the web if I don't use certifi or any sort of certificate verification while using urllib3? I am getting warnings regarding the authenticity but data is fetched regardless of that. I was just wondering, if there is any possibility of any sort of error from any site. Also, does , not using certifi speed up data fetching?

If you forego verifying your HTTPS requests, then you have no way to verify that you're not a victim of a Man-In-The-Middle attack (and possibly other attacks). In effect, it would be equivalent to making an HTTP request (rather than HTTPS) in terms of security. If the data you're dealing with is not important, then that sacrifice could be okay.

In terms of performance ramifications, the difference should be very tiny especially compared to the network round trip in the first place. I would not consider it a factor.

Our Security Section has more details on your various options, including how to disable the warnings.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM