diff --git a/.travis.yml b/.travis.yml index 6d7ba85..f0f7398 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,12 +1,13 @@ language: python python: - 2.7 - - 3.4 - - 3.5 - 3.6 + - 3.7 + - 3.8 + - 3.9 - nightly script: - python setup.py install -matrix: +jobs: allow_failures: - python: nightly diff --git a/README.md b/README.md index 7193452..71c931d 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,15 @@ -A HTTPS client implementation for - * ``httplib`` (Python 2), ``http.client`` (Python 3) and - * ``urllib2`` (Python 2) and ``urllib`` (Python 3) +A HTTPS client implementation for + * ``http.client`` (Python 3) and + * ``urllib`` (Python 3) -... based on PyOpenSSL. PyOpenSSL provides a more fully featured SSL implementation -over the default provided with Python and importantly enables full verification +... based on PyOpenSSL. PyOpenSSL provides a more fully featured SSL implementation +over the default provided with Python and importantly enables full verification of the SSL peer using ``pyasn1``. +**Note:** As of this version, Python 2 and Python < 3.8 are no longer supported. +``PyOpenSSL >= 26.0.0`` and ``pyasn1 >= 0.6.3`` are now required to address +CVE-2026-27459 and CVE-2026-30922 respectively. + Releases ======== 0.5.1 @@ -92,9 +96,7 @@ Initial release Prerequisites ============= -This has been developed and tested for Python 2.7 with pyOpenSSL 0.13 -and 0.14. Version 0.4.0 tested with ``pyOpenSSL`` 0.15.1 and Python 2.7 and -3.4. +Requires Python 3.8 or later, ``PyOpenSSL >= 26.0.0`` and ``pyasn1 >= 0.6.3``. ``pyasn1`` is required for correct SSL verification with ``subjectAltNames``. Installation diff --git a/ndg/httpsclient/subj_alt_name.py b/ndg/httpsclient/subj_alt_name.py index 7cc3f47..7c195aa 100644 --- a/ndg/httpsclient/subj_alt_name.py +++ b/ndg/httpsclient/subj_alt_name.py @@ -69,7 +69,7 @@ class AttributeTypeAndValue(univ.Sequence): class RelativeDistinguishedName(univ.SetOf): - '''ASN.1 Realtive distinguished name''' + '''ASN.1 Relative distinguished name''' componentType = AttributeTypeAndValue() class RDNSequence(univ.SequenceOf): diff --git a/setup.py b/setup.py index 90ab546..ae758a0 100644 --- a/setup.py +++ b/setup.py @@ -31,8 +31,8 @@ 'test/pki/ca/*.0' ], }, - install_requires=['PyOpenSSL', 'pyasn1>=0.1.1'], - python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*', + install_requires=['PyOpenSSL>=26.0.0', 'pyasn1>=0.6.3'], + python_requires='>=3.8', classifiers=[ 'Development Status :: 5 - Production/Stable', 'Environment :: Console', @@ -46,12 +46,14 @@ 'Operating System :: Microsoft :: Windows', 'Operating System :: POSIX :: Linux', 'Programming Language :: Python', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.4', - 'Programming Language :: Python :: 3.5', - 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', + 'Programming Language :: Python :: 3.10', + 'Programming Language :: Python :: 3.11', + 'Programming Language :: Python :: 3.12', + 'Programming Language :: Python :: 3.13', + 'Programming Language :: Python :: 3.14', 'Topic :: Security', 'Topic :: Internet', 'Topic :: Scientific/Engineering',