Skip to content

WebDriver with SSL on Python 2.7.9 #420

@jkohls

Description

@jkohls

There's an issue with the WebDriver over SSL connections on Python 2.7.9 and selenium (2.45.0).

The host name is converted to an IP address in the init method of RemoteConnection and this causes this error (has actual values stripped out).

"CertificateError: hostname '[IP_ADDRESS]' doesn't match either of '*.[HOSTNAME].com', '[HOSTNAME].com'"
Full trace in this gist.

Starting with Python 2.7.9 SSL connections have certificate validation on by default and will fail if the host names do not match.

For more information see....
https://www.python.org/dev/peps/pep-0476/
https://www.python.org/dev/peps/pep-0466/

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions