Module Expr Str Import alias Import alias Import alias Import alias Import alias ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIn Str NameLoad body Return ListComp SubscriptLoad NameLoad Index Num comprehension NameStore SubscriptLoad NameLoad Index Str CompareEq Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str orelse Return ListComp SubscriptLoad SubscriptLoad NameLoad Index Num Index Num comprehension NameStore SubscriptLoad NameLoad Index Str CompareEq Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str Str attr Str Str If Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad AttributeLoad NameLoad attr body Return NameLoad Return NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad kwarg body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Index Num If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad NameLoad NameLoad BinOpMod Str NameLoad decorator_list decorator_list
N/A N/A Extensions to allow HTTPS requests with SSL certificate validation. N/A httplib N/A re N/A socket N/A ssl N/A boto InvalidCertificateException N/A N/A httplib HTTPException N/A N/A Raised when a certificate is provided with an invalid hostname. __init__ N/A N/A self host cert reason N/A N/A N/A Constructor.

    Args:
      host: The hostname the connection was made to.
      cert: The SSL certificate (as a dictionary) the host returned.
     N/A N/A N/A N/A httplib HTTPException __init__ self N/A N/A self host host N/A N/A self cert cert N/A N/A self reason reason N/A __str__ N/A N/A self N/A N/A N/A N/A Host %s returned an invalid certificate (%s): %s N/A N/A self host N/A self reason N/A self cert N/A N/A GetValidHostsForCert N/A N/A cert N/A N/A N/A Returns a list of valid host globs for an SSL certificate.

  Args:
    cert: A dictionary representing an SSL certificate.
  Returns:
    list: A list of valid host globs.
   N/A N/A subjectAltName cert N/A N/A N/A N/A x N/A 1 N/A x N/A cert N/A subjectAltName N/A N/A N/A N/A x N/A 0 lower dns N/A N/A N/A N/A N/A x N/A 0 N/A 1 N/A x N/A cert N/A subject N/A N/A N/A N/A N/A x N/A 0 N/A 0 lower commonname N/A ValidateCertificateHostname N/A N/A cert hostname N/A N/A N/A Validates that a given hostname is valid for an SSL certificate.

  Args:
    cert: A dictionary representing an SSL certificate.
    hostname: The hostname to test.
  Returns:
    bool: Whether or not the hostname is valid for this certificate.
   N/A hosts N/A GetValidHostsForCert cert N/A N/A N/A N/A boto log debug validating server certificate: hostname=%s, certificate hosts=%s hostname hosts N/A host hosts N/A N/A host_re N/A N/A N/A N/A host replace . \. replace * [^.]* N/A N/A N/A re search N/A ^%s$ N/A host_re hostname N/A re I N/A N/A True N/A False N/A CertValidatingHTTPSConnection N/A N/A httplib HTTPConnection N/A N/A An HTTPConnection that connects over SSL and validates certificates. N/A default_port N/A httplib HTTPS_PORT __init__ N/A N/A self host port key_file cert_file ca_certs strict N/A None None None None None kwargs N/A N/A Constructor.

    Args:
      host: The hostname. Can be in 'host:port' form.
      port: The port. Defaults to 443.
      key_file: A file containing the client's private key
      cert_file: A file containing the client's certificates
      ca_certs: A file contianing a set of concatenated certificate authority
          certs for validating the server against.
      strict: When true, causes BadStatusLine to be raised if the status line
          can't be parsed as a valid HTTP/1.0 or 1.1 status line.
     N/A N/A N/A N/A httplib HTTPConnection __init__ self host port strict kwargs N/A N/A self key_file key_file N/A N/A self cert_file cert_file N/A N/A self ca_certs ca_certs N/A connect N/A N/A self N/A N/A N/A Connect to a host on a given (SSL) port. N/A sock N/A N/A socket socket N/A socket AF_INET N/A socket SOCK_STREAM N/A N/A N/A sock connect N/A N/A self host N/A self port N/A N/A N/A N/A boto log debug wrapping ssl socket; CA certificate file=%s N/A self ca_certs N/A N/A self sock N/A N/A ssl wrap_socket sock keyfile N/A self key_file certfile N/A self cert_file cert_reqs N/A ssl CERT_REQUIRED ca_certs N/A self ca_certs N/A cert N/A N/A N/A self sock getpeercert N/A hostname N/A N/A N/A N/A self host split : 0 N/A 0 N/A N/A N/A ValidateCertificateHostname cert hostname N/A N/A N/A InvalidCertificateException hostname cert N/A remote hostname "%s" does not match certificate hostname N/A N/A