Package M2Crypto :: Package SSL :: Module Checker :: Class WrongHost
[frames] | no frames]

Class WrongHost




Instance Methods
 
__init__(self, expectedHost, actualHost, fieldName='commonName')
This exception will be raised if the certificate returned by the peer was issued for a different host than we tried to connect to.
 
__str__(self)
str(x)

Inherited from exceptions.Exception: __new__

Inherited from exceptions.BaseException: __delattr__, __getattribute__, __getitem__, __getslice__, __reduce__, __repr__, __setattr__, __setstate__

Inherited from object: __hash__, __reduce_ex__

Properties

Inherited from exceptions.BaseException: args, message

Inherited from object: __class__

Method Details

__init__(self, expectedHost, actualHost, fieldName='commonName')
(Constructor)

 

This exception will be raised if the certificate returned by the peer was issued for a different host than we tried to connect to. This could be due to a server misconfiguration or an active attack.

Parameters:
  • expectedHost - The name of the host we expected to find in the certificate.
  • actualHost - The name of the host we actually found in the certificate.
  • fieldName - The field name where we noticed the error. This should be either 'commonName' or 'subjectAltName'.
Overrides: object.__init__

__str__(self)
(Informal representation operator)

 

str(x)

Overrides: object.__str__
(inherited documentation)