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
- certificate verification error — The error a TLS client raises when a certificate fails its checks, with a reason naming what went wrong.
- trust store — The list of root certificate authorities a client trusts, usually supplied by the operating system or passed explicitly.
- on-path attack — An attack where someone between a client and a server reads or changes their traffic, often by pretending to be the server.
Taught in
- Secure Defaults — Application Security & Threat Modeling for Engineers
- TLS And The Handshake — Application Security & Threat Modeling for Engineers