Submit
Path:
~
/
/
lib
/
python2.7
/
site-packages
/
File Content:
backports.ssl_match_hostname-3.5.0.1-py2.7.egg-info
Metadata-Version: 1.1 Name: backports.ssl_match_hostname Version: 3.5.0.1 Summary: The ssl.match_hostname() function from Python 3.5 Home-page: http://bitbucket.org/brandon/backports.ssl_match_hostname Author: Toshio Kuratomi Author-email: toshio@fedoraproject.org License: Python Software Foundation License Description: The ssl.match_hostname() function from Python 3.5 ================================================= The Secure Sockets Layer is only actually *secure* if you check the hostname in the certificate returned by the server to which you are connecting, and verify that it matches to hostname that you are trying to reach. But the matching logic, defined in `RFC2818`_, can be a bit tricky to implement on your own. So the ``ssl`` package in the Standard Library of Python 3.2 and greater now includes a ``match_hostname()`` function for performing this check instead of requiring every application to implement the check separately. This backport brings ``match_hostname()`` to users of earlier versions of Python. Simply make this distribution a dependency of your package, and then use it like this:: from backports.ssl_match_hostname import match_hostname, CertificateError [...] sslsock = ssl.wrap_socket(sock, ssl_version=ssl.PROTOCOL_SSLv23, cert_reqs=ssl.CERT_REQUIRED, ca_certs=...) try: match_hostname(sslsock.getpeercert(), hostname) except CertificateError, ce: ... Brandon Craig Rhodes is merely the packager of this distribution; the actual code inside comes from Python 3.5 with small changes for portability. Requirements ------------ * If you want to verify hosts match with certificates via ServerAltname IPAddress fields, you need to install the `ipaddress module`_. backports.ssl_match_hostname will continue to work without ipaddress but will only be able to handle ServerAltName DNSName fields, not IPAddress. System packagers (Linux distributions, et al) are encouraged to add this as a hard dependency in their packages. * If you need to use this on Python versions earlier than 2.6 you will need to install the `ssl module`_. From Python 2.6 upwards ``ssl`` is included in the Python Standard Library so you do not need to install it separately. .. _`ipaddress module`:: https://pypi.python.org/pypi/ipaddress .. _`ssl module`:: https://pypi.python.org/pypi/ssl History ------- * This function was introduced in python-3.2 * It was updated for python-3.4a1 for a CVE (backports-ssl_match_hostname-3.4.0.1) * It was updated from RFC2818 to RFC 6125 compliance in order to fix another security flaw for python-3.3.3 and python-3.4a5 (backports-ssl_match_hostname-3.4.0.2) * It was updated in python-3.5 to handle IPAddresses in ServerAltName fields (something that backports.ssl_match_hostname will do if you also install the ipaddress library from pypi). .. _RFC2818: http://tools.ietf.org/html/rfc2818.html Platform: UNKNOWN Classifier: Development Status :: 5 - Production/Stable Classifier: License :: OSI Approved :: Python Software Foundation License Classifier: Programming Language :: Python :: 2.4 Classifier: Programming Language :: Python :: 2.5 Classifier: Programming Language :: Python :: 2.6 Classifier: Programming Language :: Python :: 2.7 Classifier: Programming Language :: Python :: 3 Classifier: Programming Language :: Python :: 3.0 Classifier: Programming Language :: Python :: 3.1 Classifier: Topic :: Security :: Cryptography
Submit
FILE
FOLDER
Name
Size
Permission
Action
Babel-0.9.6-py2.7.egg-info
---
0755
Jinja2-2.7.2-py2.7.egg-info
---
0755
Pygments-2.0.2-py2.7.egg-info
---
0755
_markerlib
---
0755
awscli
---
0755
awscli-1.11.71.dist-info
---
0755
babel
---
0755
backports
---
0755
boto
---
0755
boto-2.45.0-py2.7.egg-info
---
0755
botocore
---
0755
botocore-1.5.34.dist-info
---
0755
chardet
---
0755
chardet-2.2.1-py2.7.egg-info
---
0755
clcommon
---
0755
cloud_init-19.4-py2.7.egg-info
---
0755
cloudinit
---
0755
colorama
---
0755
colorama-0.3.7.dist-info
---
0755
concurrent
---
0755
dateutil
---
0755
decorator-3.4.0-py2.7.egg-info
---
0755
docutils
---
0755
docutils-0.13.1.dist-info
---
0755
firewall
---
0755
futures-3.0.5.dist-info
---
0755
google
---
0755
iniparse
---
0755
isc
---
0755
javapackages
---
0755
javapackages-1.0.0-py2.7.egg-info
---
0755
jinja2
---
0755
jmespath
---
0755
jmespath-0.9.2.dist-info
---
0755
jsonpatch-1.2-py2.7.egg-info
---
0755
jsonpointer-1.9-py2.7.egg-info
---
0755
kitchen
---
0755
kitchen-1.1.1-py2.7.egg-info
---
0755
markdown
---
0755
pip
---
0755
pip-8.1.2-py2.7.egg-info
---
0755
ply
---
0755
prettytable-0.7.2-py2.7.egg-info
---
0755
procfs
---
0755
protobuf-2.5.0-py2.7.egg-info
---
0755
pyasn1
---
0755
pyasn1-0.1.9-py2.7.egg-info
---
0755
pycriu
---
0755
pygments
---
0755
python_dateutil-2.6.0.dist-info
---
0755
pyudev
---
0755
pyudev-0.15-py2.7.egg-info
---
0755
pyzor
---
0755
pyzor-1.0.0-py2.7.egg-info
---
0755
redhat_support_lib
---
0755
redhat_support_tool
---
0755
requests
---
0755
rhn
---
0755
rpmUtils
---
0755
rsa
---
0755
rsa-3.4.1-py2.7.egg-info
---
0755
s3transfer
---
0755
s3transfer-0.1.10.dist-info
---
0755
serial
---
0755
setuptools
---
0755
setuptools-0.9.8-py2.7.egg-info
---
0755
six-1.9.0-py2.7.egg-info
---
0755
slip
---
0755
tuned
---
0755
urlgrabber
---
0755
urllib3
---
0755
urllib3-1.13.1-py2.7.egg-info
---
0755
yum
---
0755
yumutils
---
0755
IPy-0.75-py2.7.egg-info
10061 bytes
0644
IPy.py
51270 bytes
0644
IPy.pyc
40873 bytes
0644
IPy.pyo
40873 bytes
0644
Markdown-2.4.1-py2.7.egg-info
2282 bytes
0644
backports.ssl_match_hostname-3.5.0.1-py2.7.egg-info
4051 bytes
0644
clsudo.py
12953 bytes
0644
clsudo.pyc
11285 bytes
0644
clsudo.pyo
11285 bytes
0644
configobj-4.7.2-py2.7.egg-info
2135 bytes
0644
configobj.py
88163 bytes
0644
configobj.pyc
66278 bytes
0644
configobj.pyo
66278 bytes
0644
crit-0.0.1-py2.7.egg-info
231 bytes
0644
decorator.py
10639 bytes
0644
decorator.pyc
8563 bytes
0644
decorator.pyo
8516 bytes
0644
easy_install.py
126 bytes
0644
easy_install.pyc
315 bytes
0644
easy_install.pyo
315 bytes
0644
hwdata.py
6033 bytes
0644
hwdata.pyc
4487 bytes
0644
hwdata.pyo
4487 bytes
0644
iniparse-0.4-py2.7.egg-info
1083 bytes
0644
ipaddr-2.1.11-py2.7.egg-info
588 bytes
0644
ipaddr.py
59560 bytes
0644
ipaddr.pyc
57572 bytes
0644
ipaddr.pyo
57371 bytes
0644
ipaddress-1.0.16-py2.7.egg-info
783 bytes
0644
ipaddress.py
79904 bytes
0644
ipaddress.pyc
75525 bytes
0644
ipaddress.pyo
75335 bytes
0644
isc-2.0-py2.7.egg-info
267 bytes
0644
jsonpatch.py
15946 bytes
0644
jsonpatch.pyc
17386 bytes
0644
jsonpatch.pyo
17182 bytes
0644
jsonpointer.py
9367 bytes
0644
jsonpointer.pyc
9615 bytes
0644
jsonpointer.pyo
9457 bytes
0644
pciutils-1.7.3-py2.7.egg-info
267 bytes
0644
pkg_resources.py
101108 bytes
0644
pkg_resources.pyc
108033 bytes
0644
pkg_resources.pyo
108001 bytes
0644
ply-3.4-py2.7.egg-info
900 bytes
0644
prettytable.py
54204 bytes
0644
prettytable.pyc
51591 bytes
0644
prettytable.pyo
50652 bytes
0644
protobuf-2.5.0-py2.7-nspkg.pth
307 bytes
0644
pyparsing-1.5.6-py2.7.egg-info
670 bytes
0644
pyparsing.py
155429 bytes
0644
pyparsing.pyc
148895 bytes
0644
pyparsing.pyo
148895 bytes
0644
pyserial-2.6-py2.7.egg-info
1399 bytes
0644
python_linux_procfs-0.4.9-py2.7.egg-info
350 bytes
0644
requests-2.9.1-py2.7.egg-info
46161 bytes
0644
rhnlib-2.5.65-py2.7.egg-info
345 bytes
0644
secureio.py
9222 bytes
0644
secureio.pyc
4686 bytes
0644
secureio.pyo
4686 bytes
0644
six.py
29664 bytes
0644
six.pyc
29708 bytes
0644
six.pyo
29708 bytes
0644
slip-0.4.0-py2.7.egg-info
196 bytes
0644
slip.dbus-0.4.0-py2.7.egg-info
269 bytes
0644
urlgrabber-3.10-py2.7.egg-info
2265 bytes
0644
validate.py
46303 bytes
0644
validate.pyc
46711 bytes
0644
validate.pyo
46711 bytes
0644
N4ST4R_ID | Naxtarrr