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

Module subj_alt_name

source code

NDG HTTPS Client package

Use pyasn1 to provide support for parsing ASN.1 formatted subjectAltName content for SSL peer verification. Code based on:

http://stackoverflow.com/questions/5519958/how-do-i-parse-subjectaltname-extension-data-using-pyasn1


Date: 01/02/12

Author: P J Kershaw

Contact: Philip.Kershaw@stfc.ac.uk

Copyright: (C) 2012 Science and Technology Facilities Council

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

Classes [hide private]
  Pyasn1ImportError
Raise for pyasn1 import error
  DirectoryString
ASN.1 Directory string class
  AttributeValue
ASN.1 Attribute value
  AttributeType
ASN.1 Attribute type
  AttributeTypeAndValue
ASN.1 Attribute type and value class
  RelativeDistinguishedName
ASN.1 Realtive distinguished name
  RDNSequence
ASN.1 RDN sequence class
  Name
ASN.1 name class
  Extension
ASN.1 extension class
  Extensions
ASN.1 extensions class
  GeneralName
ASN.1 configuration for X.509 certificate subjectAltNames fields
  GeneralNames
Sequence of names for ASN.1 subjectAltNames settings
  SubjectAltName
ASN.1 implementation for subjectAltNames support
Variables [hide private]
  __revision__ = '$Id$'
  import_error_msg = 'Error importing pyasn1, subjectAltName che...
  MAX = 64
  __package__ = 'ndg.httpsclient'
Variables Details [hide private]

import_error_msg

Value:
'Error importing pyasn1, subjectAltName check for SSL ' 'peer verifica\
tion will be disabled.  Import error ' 'is: %s' % e