Skip to content

How to turn on or off SSL verification with aiohttp.request() ? #5786

Answered by Dreamsorcerer
jsathish asked this question in Q&A
Discussion options

You must be logged in to vote

May I know what parameters I have to use to turn on or off the SSL verification.

Well, the documentation you referred to describes the valid arguments as:

SSL validation mode. None for default SSL check (ssl.create_default_context() is used), False for skip SSL certificate validation, aiohttp.Fingerprint for fingerprint validation, ssl.SSLContext for custom SSL certificate validation.
https://docs.aiohttp.org/en/stable/client_reference.html#client-session

If you're getting a TypeError while passing in one of these, then feel free to file a bug report, and include the code you are trying.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by webknjaz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants