Package ndg :: Package httpsclient :: Module ssl_context_util
[hide private]

Module ssl_context_util

source code

ndg_httpsclient SSL Context utilities module containing convenience routines for setting SSL context configuration.

Date: 09/12/11

Author: P J Kershaw (STFC)


Copyright: (C) 2012 Science and Technology Facilities Council

License: BSD - see LICENSE file in top-level directory

Classes [hide private]
Holds configuration options for creating a SSL context.
Functions [hide private]
make_ssl_context_from_config(ssl_config=False, url=None) source code
make_ssl_context(key_file=None, cert_file=None, pem_file=None, ca_dir=None, verify_peer=False, url=None, method=3)
Creates SSL context containing certificate and key file locations.
source code
set_peer_verification_for_url_hostname(ssl_context, url, if_verify_enabled=False)
Convenience routine to set peer verification callback based on ServerSSLCertVerification class
source code
Variables [hide private]
  __revision__ = '$Id$'
  __package__ = 'ndg.httpsclient'