certificate verification

The client's checks that a server certificate chains to a trusted authority, is in date, and names the host it asked for.

With verification off, anyone on the network path can impersonate the server and read everything.

In more detail

With verification off (check_hostname = False and verify_mode = CERT_NONE) you get encryption with no authentication, which looks secure but lets anyone answer in the server's place. Search code for verify=False, InsecureSkipVerify and CERT_NONE, and let a default context do its job.

Related terms

Taught in

References