The cinder.volume.drivers.dell_emc.vmax.https Module

class HTTPSConnection(host, port=None, key_file=None, cert_file=None, strict=None, ca_certs=None, no_verification=False)

Bases: httplib.HTTPSConnection

connect()
static host_matches_cert(host, x509)

Verify that the certificate matches host.

Verify that the x509 certificate we have received from ‘host’ correctly identifies the server we are connecting to, ie that the certificate’s Common Name or a Subject Alternative Name matches ‘host’.

set_context()

Set up the OpenSSL context.

verify_callback(connection, x509, errnum, depth, preverify_ok)
class OpenSSLConnectionDelegator(*args, **kwargs)

Bases: object

An OpenSSL.SSL.Connection delegator.

Supplies an additional ‘makefile’ method which http_client requires and is not present in OpenSSL.SSL.Connection. Note: Since it is not possible to inherit from OpenSSL.SSL.Connection a delegator must be used.

makefile(*args, **kwargs)
get_default_ca_certs()

Gets the default CA certificates if found, otherwise None.

Try to find out system path with ca certificates. This path is cached and returned. If no path is found out, None is returned.

to_bytes(s)
wbem_request(url, data, creds, headers=None, debug=0, x509=None, verify_callback=None, ca_certs=None, no_verification=False)

Send request over HTTP.

Send XML data over HTTP to the specified url. Return the response in XML. Uses Python’s build-in http_client. x509 may be a dictionary containing the location of the SSL certificate and key files.