Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions python/stdlib/create_unverified_context.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import ssl


context = ssl._create_unverified_context()

Check warning

Code scanning / Precaution

Improper Certificate Validation Using ssl._create_unverified_context

The 'ssl._create_unverified_context' function does not properly validate certificates.

Check warning

Code scanning / Bandit

By default, Python will create a secure, verified ssl context for use in such classes as HTTPSConnection. However, it still allows using an insecure context via the _create_unverified_context that reverts to the previous behavior that does not validate certificates or perform hostname checks. Warning

By default, Python will create a secure, verified ssl context for use in such classes as HTTPSConnection. However, it still allows using an insecure context via the _create_unverified_context that reverts to the previous behavior that does not validate certificates or perform hostname checks.