OpenQuizz
Une application de gestion des contenus pédagogiques
pymongo.ssl_match_hostname Namespace Reference

Functions

def match_hostname (cert, hostname)
 

Variables

 ip_address
 

Function Documentation

◆ match_hostname()

def pymongo.ssl_match_hostname.match_hostname (   cert,
  hostname 
)
Verify that *cert* (in decoded format as returned by
SSLSocket.getpeercert()) matches the *hostname*.  RFC 2818 and RFC 6125
rules are followed.

CertificateError is raised on failure. On success, the function
returns nothing.

Variable Documentation

◆ ip_address

ip_address