Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(2)  |  Derive(0)  |  Import(4)
Raised when the remote end's certificate did not verify correctly.

src/k/a/kaa-base-0.99.2dev-384-2b73caca/src/net/tls/m2.py   kaa-base(Download)
# kaa imports
import kaa
from .common import TLSError, TLSProtocolError, TLSVerificationError, TLSSocketBase
 
M2Crypto.threading.init()
            # for the error codes returned by SSL_get_verify_result.
            if m2.ssl_get_verify_result(self._ssl.obj) != m2.X509_V_OK:
                raise TLSVerificationError('Peer certificate is not signed by a known CA')
 
        x509 = self._m2_check_err(m2.ssl_get_peer_cert(self._ssl.obj), TLSVerificationError)

src/k/a/kaa-base-HEAD/src/net/tls/m2.py   kaa-base(Download)
# kaa imports
import kaa
from .common import TLSError, TLSProtocolError, TLSVerificationError, TLSSocketBase
 
M2Crypto.threading.init()
            # for the error codes returned by SSL_get_verify_result.
            if m2.ssl_get_verify_result(self._ssl.obj) != m2.X509_V_OK:
                raise TLSVerificationError('Peer certificate is not signed by a known CA')
 
        x509 = self._m2_check_err(m2.ssl_get_peer_cert(self._ssl.obj), TLSVerificationError)

src/k/a/kaa-base-0.99.2dev-384-2b73caca/src/net/tls/tlslite.py   kaa-base(Download)
# kaa imports
import kaa
from .common import TLSError, TLSProtocolError, TLSVerificationError, TLSSocketBase
 
# get logging object

src/k/a/kaa-base-HEAD/src/net/tls/tlslite.py   kaa-base(Download)
# kaa imports
import kaa
from .common import TLSError, TLSProtocolError, TLSVerificationError, TLSSocketBase
 
# get logging object