Bases: object
An OpenSSL.SSL.Connection delegator.
Supplies an additional ‘makefile’ method which httplib 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.
Bases: http.client.HTTPSConnection
Extended OpenSSL HTTPSConnection for enhanced SSL support.
with native Python 3.3 code.
Connect to an SSL port using the OpenSSL library.
This method also applies per-connection parameters to the connection.
Set up the OpenSSL context.
Verify the server’s SSL certificate.
This is a standalone function rather than a method to avoid issues around closing sockets if a reference is held on a VerifiedHTTPSConnection by the callback function.
Verify the certificate identifies the 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’.
Provide wrapper for do_verify_callback.
We use a partial around the ‘real’ verify_callback function so that we can stash the host value without holding a reference on the VerifiedHTTPSConnection.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.