def set_verify_certs(self):
        if self.transport:
            from M2Crypto import SSL
            if self.verify_certs:
                self.transport.ssl_ctx.set_verify(
                    SSL.verify_peer | SSL.verify_fail_if_no_peer_cert, 16)
                self.transport.ssl_ctx.load_verify_locations(
                    capath=XMLRPC_TRUSTED_CA_PATH)
            else:
                self.transport.ssl_ctx.set_verify(
                    SSL.verify_none, 1)
Enable/disable SSL certificate verification.
dataset/ETHPy150Open fp7-ofelia/ocf/expedient/src/python/plugins/openflow/tests/omctl/XMLRPCServerProxy.py/PasswordXMLRPCServerProxy.set_verify_certs