Sourcing python-remove-tests-dir-hook Sourcing python-catch-conflicts-hook.sh Sourcing python-remove-bin-bytecode-hook.sh Sourcing pypa-build-hook Using pypaBuildPhase Sourcing python-runtime-deps-check-hook Using pythonRuntimeDepsCheckHook Sourcing pypa-install-hook Using pypaInstallPhase Sourcing python-imports-check-hook.sh Using pythonImportsCheckPhase Sourcing python-namespaces-hook Sourcing python-catch-conflicts-hook.sh Sourcing sphinx-hook Sourcing pytest-check-hook Using pytestCheckPhase Running phase: unpackPhase unpacking source archive /nix/store/sr2yqa1zy8w10n6pxmv40kc4lb5zkw1f-source source root is source setting SOURCE_DATE_EPOCH to timestamp 315619200 of file "source/tox.ini" Running phase: patchPhase Running phase: updateAutotoolsGnuConfigScriptsPhase Running phase: configurePhase no configure script, doing nothing Running phase: buildPhase Executing pypaBuildPhase Creating a wheel... pypa build flags: --no-isolation --outdir dist/ --wheel * Getting build dependencies for wheel... /nix/store/5ipvqipbr52zh1mh0jq7agixgd4c4432-python3.13-setuptools-80.9.0/lib/python3.13/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated. !! ******************************************************************************** Please consider removing the following classifiers in favor of a SPDX license expression: License :: OSI Approved :: Apache Software License See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! self._finalize_license_expression() running egg_info creating src/pyOpenSSL.egg-info writing src/pyOpenSSL.egg-info/PKG-INFO writing dependency_links to src/pyOpenSSL.egg-info/dependency_links.txt writing requirements to src/pyOpenSSL.egg-info/requires.txt writing top-level names to src/pyOpenSSL.egg-info/top_level.txt writing manifest file 'src/pyOpenSSL.egg-info/SOURCES.txt' reading manifest file 'src/pyOpenSSL.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching '.coveragerc' warning: no previously-included files found matching '.readthedocs.yml' warning: no previously-included files found matching 'mypy.ini' no previously-included directories found matching 'doc/_build' adding license file 'LICENSE' writing manifest file 'src/pyOpenSSL.egg-info/SOURCES.txt' * Building wheel... /nix/store/5ipvqipbr52zh1mh0jq7agixgd4c4432-python3.13-setuptools-80.9.0/lib/python3.13/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated. !! ******************************************************************************** Please consider removing the following classifiers in favor of a SPDX license expression: License :: OSI Approved :: Apache Software License See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! self._finalize_license_expression() running bdist_wheel running build running build_py creating build/lib/OpenSSL copying src/OpenSSL/__init__.py -> build/lib/OpenSSL copying src/OpenSSL/rand.py -> build/lib/OpenSSL copying src/OpenSSL/version.py -> build/lib/OpenSSL copying src/OpenSSL/_util.py -> build/lib/OpenSSL copying src/OpenSSL/debug.py -> build/lib/OpenSSL copying src/OpenSSL/SSL.py -> build/lib/OpenSSL copying src/OpenSSL/crypto.py -> build/lib/OpenSSL copying src/OpenSSL/py.typed -> build/lib/OpenSSL installing to build/bdist.linux-x86_64/wheel running install running install_lib creating build/bdist.linux-x86_64/wheel creating build/bdist.linux-x86_64/wheel/OpenSSL copying build/lib/OpenSSL/__init__.py -> build/bdist.linux-x86_64/wheel/./OpenSSL copying build/lib/OpenSSL/rand.py -> build/bdist.linux-x86_64/wheel/./OpenSSL copying build/lib/OpenSSL/version.py -> build/bdist.linux-x86_64/wheel/./OpenSSL copying build/lib/OpenSSL/py.typed -> build/bdist.linux-x86_64/wheel/./OpenSSL copying build/lib/OpenSSL/_util.py -> build/bdist.linux-x86_64/wheel/./OpenSSL copying build/lib/OpenSSL/debug.py -> build/bdist.linux-x86_64/wheel/./OpenSSL copying build/lib/OpenSSL/SSL.py -> build/bdist.linux-x86_64/wheel/./OpenSSL copying build/lib/OpenSSL/crypto.py -> build/bdist.linux-x86_64/wheel/./OpenSSL running install_egg_info running egg_info writing src/pyOpenSSL.egg-info/PKG-INFO writing dependency_links to src/pyOpenSSL.egg-info/dependency_links.txt writing requirements to src/pyOpenSSL.egg-info/requires.txt writing top-level names to src/pyOpenSSL.egg-info/top_level.txt reading manifest file 'src/pyOpenSSL.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching '.coveragerc' warning: no previously-included files found matching '.readthedocs.yml' warning: no previously-included files found matching 'mypy.ini' no previously-included directories found matching 'doc/_build' adding license file 'LICENSE' writing manifest file 'src/pyOpenSSL.egg-info/SOURCES.txt' Copying src/pyOpenSSL.egg-info to build/bdist.linux-x86_64/wheel/./pyOpenSSL-25.1.0-py3.13.egg-info running install_scripts creating build/bdist.linux-x86_64/wheel/pyopenssl-25.1.0.dist-info/WHEEL creating '/build/source/dist/.tmp-omz0j7gf/pyopenssl-25.1.0-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it adding 'OpenSSL/SSL.py' adding 'OpenSSL/__init__.py' adding 'OpenSSL/_util.py' adding 'OpenSSL/crypto.py' adding 'OpenSSL/debug.py' adding 'OpenSSL/py.typed' adding 'OpenSSL/rand.py' adding 'OpenSSL/version.py' adding 'pyopenssl-25.1.0.dist-info/licenses/LICENSE' adding 'pyopenssl-25.1.0.dist-info/METADATA' adding 'pyopenssl-25.1.0.dist-info/WHEEL' adding 'pyopenssl-25.1.0.dist-info/top_level.txt' adding 'pyopenssl-25.1.0.dist-info/RECORD' removing build/bdist.linux-x86_64/wheel Successfully built pyopenssl-25.1.0-py3-none-any.whl Finished creating a wheel... /build/source/dist /build/source Unpacking to: unpacked/pyopenssl-25.1.0...OK Repacking wheel as ./pyopenssl-25.1.0-py3-none-any.whl...OK /build/source Finished executing pypaBuildPhase Running phase: pythonRuntimeDepsCheckHook Executing pythonRuntimeDepsCheck Checking runtime dependencies for pyopenssl-25.1.0-py3-none-any.whl Finished executing pythonRuntimeDepsCheck Running phase: installPhase Executing pypaInstallPhase Successfully installed pyopenssl-25.1.0-py3-none-any.whl Finished executing pypaInstallPhase Running phase: pythonOutputDistPhase Executing pythonOutputDistPhase Finished executing pythonOutputDistPhase Running phase: buildSphinxPhase Executing buildSphinxPhase Sphinx documentation found in doc Executing sphinx-build with html builder Running Sphinx v8.2.3 loading translations [en]... locale_dir /build/source/doc/locales/en/LC_MESSAGES does not exist locale_dir /build/source/doc/locales/en/LC_MESSAGES does not exist done making output directory... done Converting `source_suffix = '.rst'` to `source_suffix = {'.rst': 'restructuredtext'}`. locale_dir /build/source/doc/locales/en/LC_MESSAGES does not exist loading intersphinx inventory 'python' from https://docs.python.org/3/objects.inv ... WARNING: failed to reach any of the inventories with the following issues: intersphinx inventory 'https://docs.python.org/3/objects.inv' not fetchable due to : HTTPSConnectionPool(host='docs.python.org', port=443): Max retries exceeded with url: /3/objects.inv (Caused by NameResolutionError("HTTPSConnection(host='docs.python.org', port=443): Failed to resolve 'docs.python.org' ([Errno -3] Temporary failure in name resolution)")) loading intersphinx inventory 'cryptography' from https://cryptography.io/en/latest/objects.inv ... WARNING: failed to reach any of the inventories with the following issues: intersphinx inventory 'https://cryptography.io/en/latest/objects.inv' not fetchable due to : HTTPSConnectionPool(host='cryptography.io', port=443): Max retries exceeded with url: /en/latest/objects.inv (Caused by NameResolutionError("HTTPSConnection(host='cryptography.io', port=443): Failed to resolve 'cryptography.io' ([Errno -3] Temporary failure in name resolution)")) locale_dir /build/source/doc/locales/en/LC_MESSAGES does not exist building [mo]: targets for 0 po files that are out of date writing output... building [html]: targets for 9 source files that are out of date updating environment: locale_dir /build/source/doc/locales/en/LC_MESSAGES does not exist [new config] 9 added, 0 changed, 0 removed reading sources... [ 11%] api reading sources... [ 22%] api/crypto reading sources... [ 33%] api/ssl reading sources... [ 44%] backward-compatibility reading sources... [ 56%] changelog reading sources... [ 67%] index reading sources... [ 78%] install reading sources... [ 89%] internals reading sources... [100%] introduction looking for now-outdated files... none found pickling environment... done checking consistency... done preparing documents... done copying assets... copying static files... Writing evaluated template result to /build/source/.sphinx/html/html/_static/documentation_options.js Writing evaluated template result to /build/source/.sphinx/html/html/_static/basic.css Writing evaluated template result to /build/source/.sphinx/html/html/_static/language_data.js Writing evaluated template result to /build/source/.sphinx/html/html/_static/js/versions.js copying static files: done copying extra files... copying extra files: done copying assets: done writing output... [ 11%] api writing output... [ 22%] api/crypto writing output... [ 33%] api/ssl writing output... [ 44%] backward-compatibility writing output... [ 56%] changelog writing output... [ 67%] index writing output... [ 78%] install writing output... [ 89%] internals writing output... [100%] introduction generating indices... genindex py-modindex done writing additional pages... search done dumping search index in English (code: en)... done dumping object inventory... done build succeeded, 2 warnings. The HTML pages are in .sphinx/html/html. Running phase: installSphinxPhase Executing installSphinxPhase Running phase: fixupPhase shrinking RPATHs of ELF executables and libraries in /nix/store/kmpg9knz3khv97j8mh9kqaxk98ypvy52-python3.13-pyopenssl-25.1.0 checking for references to /build/ in /nix/store/kmpg9knz3khv97j8mh9kqaxk98ypvy52-python3.13-pyopenssl-25.1.0... patching script interpreter paths in /nix/store/kmpg9knz3khv97j8mh9kqaxk98ypvy52-python3.13-pyopenssl-25.1.0 stripping (with command strip and flags -S -p) in /nix/store/kmpg9knz3khv97j8mh9kqaxk98ypvy52-python3.13-pyopenssl-25.1.0/lib shrinking RPATHs of ELF executables and libraries in /nix/store/a7dyhvakzdqg566nfsgvi0n4ijp65qms-python3.13-pyopenssl-25.1.0-doc checking for references to /build/ in /nix/store/a7dyhvakzdqg566nfsgvi0n4ijp65qms-python3.13-pyopenssl-25.1.0-doc... patching script interpreter paths in /nix/store/a7dyhvakzdqg566nfsgvi0n4ijp65qms-python3.13-pyopenssl-25.1.0-doc shrinking RPATHs of ELF executables and libraries in /nix/store/kg7ay2abpg78nbl3076ffv71wswl70p2-python3.13-pyopenssl-25.1.0-dist checking for references to /build/ in /nix/store/kg7ay2abpg78nbl3076ffv71wswl70p2-python3.13-pyopenssl-25.1.0-dist... patching script interpreter paths in /nix/store/kg7ay2abpg78nbl3076ffv71wswl70p2-python3.13-pyopenssl-25.1.0-dist Executing pythonRemoveTestsDir Finished executing pythonRemoveTestsDir Running phase: installCheckPhase no Makefile or custom installCheckPhase, doing nothing Running phase: pythonCatchConflictsPhase Running phase: pythonRemoveBinBytecodePhase Running phase: pythonImportsCheckPhase Executing pythonImportsCheckPhase Running phase: pytestCheckPhase Executing pytestCheckPhase pytest flags: -m pytest -k not\ \(test_set_default_verify_paths\)\ and\ not\ \(test_fallback_default_verify_paths\)\ and\ not\ \(test_wantWriteError\)\ and\ not\ \(test_alpn_call_failure\)\ and\ not\ \(test_client_receives_servers_data\)\ and\ not\ \(test_dump_certificate\)\ and\ not\ \(test_dump_privatekey_text\)\ and\ not\ \(test_dump_certificate_request\)\ and\ not\ \(test_export_text\) ============================= test session starts ============================== platform linux -- Python 3.13.11, pytest-8.4.2, pluggy-1.6.0 OpenSSL: b'OpenSSL 3.6.0 1 Oct 2025' cryptography: 46.0.3 rootdir: /build/source configfile: pyproject.toml testpaths: tests plugins: rerunfailures-16.0.1 collected 465 items / 9 deselected / 456 selected tests/test_crypto.py ................................................... [ 11%] ........................................................................ [ 26%] ........................................................................ [ 42%] ................. [ 46%] tests/test_debug.py . [ 46%] tests/test_rand.py .... [ 47%] tests/test_ssl.py ...................................................... [ 59%] ........................................................................ [ 75%] ........................................................................ [ 91%] ........................................ [ 99%] tests/test_util.py . [100%] =============================== warnings summary =============================== tests/test_crypto.py:30 tests/test_crypto.py:30 /build/source/tests/test_crypto.py:30: DeprecationWarning: CSR support in pyOpenSSL is deprecated. You should use the APIs in cryptography. from OpenSSL.crypto import ( ../../nix/store/x4scnja62nk1i3lj5yggii85vs4h4gni-python3.13-pytest-8.4.2/lib/python3.13/site-packages/_pytest/assertion/rewrite.py:186 /nix/store/x4scnja62nk1i3lj5yggii85vs4h4gni-python3.13-pytest-8.4.2/lib/python3.13/site-packages/_pytest/assertion/rewrite.py:186: DeprecationWarning: OpenSSL.rand is deprecated - you should use os.urandom instead exec(co, module.__dict__) tests/test_crypto.py::TestX509Ext::test_str /build/source/tests/test_crypto.py:891: DeprecationWarning: X509Extension support in pyOpenSSL is deprecated. You should use the APIs in cryptography. str(X509Extension(b"basicConstraints", True, b"CA:false")) tests/test_crypto.py::TestX509Ext::test_construction /build/source/tests/test_crypto.py:900: DeprecationWarning: X509Extension support in pyOpenSSL is deprecated. You should use the APIs in cryptography. basic = X509Extension(b"basicConstraints", True, b"CA:true") tests/test_crypto.py::TestX509Ext::test_construction /build/source/tests/test_crypto.py:903: DeprecationWarning: X509Extension support in pyOpenSSL is deprecated. You should use the APIs in cryptography. comment = X509Extension(b"nsComment", False, b"pyOpenSSL unit test") tests/test_crypto.py::TestX509Ext::test_invalid_extension[thisIsMadeUp-False-hi] tests/test_crypto.py::TestX509Ext::test_invalid_extension[basicConstraints-False-blah blah] tests/test_crypto.py::TestX509Ext::test_invalid_extension[proxyCertInfo-True-language:id-ppl-anyLanguage,pathlen:1,policy:text:AB] /build/source/tests/test_crypto.py:931: DeprecationWarning: X509Extension support in pyOpenSSL is deprecated. You should use the APIs in cryptography. X509Extension(type_name, critical, value) tests/test_crypto.py::TestX509Ext::test_get_critical[True] tests/test_crypto.py::TestX509Ext::test_get_critical[False] /build/source/tests/test_crypto.py:939: DeprecationWarning: X509Extension support in pyOpenSSL is deprecated. You should use the APIs in cryptography. ext = X509Extension(b"basicConstraints", critical_flag, b"CA:true") tests/test_crypto.py::TestX509Ext::test_get_short_name[basicConstraints-CA:true] tests/test_crypto.py::TestX509Ext::test_get_short_name[nsComment-foo bar] /build/source/tests/test_crypto.py:951: DeprecationWarning: X509Extension support in pyOpenSSL is deprecated. You should use the APIs in cryptography. ext = X509Extension(short_name, True, value) tests/test_crypto.py::TestX509Ext::test_get_data /build/source/tests/test_crypto.py:959: DeprecationWarning: X509Extension support in pyOpenSSL is deprecated. You should use the APIs in cryptography. ext = X509Extension(b"basicConstraints", True, b"CA:true") tests/test_crypto.py::TestX509Ext::test_unused_subject tests/test_crypto.py::TestX509Ext::test_subject tests/test_crypto.py::TestX509Ext::test_unused_issuer tests/test_crypto.py::TestX509Ext::test_issuer /build/source/tests/test_crypto.py:862: DeprecationWarning: CSR support in pyOpenSSL is deprecated. You should use the APIs in cryptography. req = X509Req() tests/test_crypto.py::TestX509Ext::test_unused_subject /build/source/tests/test_crypto.py:969: DeprecationWarning: X509Extension support in pyOpenSSL is deprecated. You should use the APIs in cryptography. ext1 = X509Extension( tests/test_crypto.py::TestX509Ext::test_unused_subject /build/source/tests/test_crypto.py:972: DeprecationWarning: This API is deprecated and will be removed in a future version of pyOpenSSL. You should use pyca/cryptography's X.509 APIs instead. x509.add_extensions([ext1]) tests/test_crypto.py::TestX509Ext::test_subject /build/source/tests/test_crypto.py:985: DeprecationWarning: X509Extension support in pyOpenSSL is deprecated. You should use the APIs in cryptography. ext3 = X509Extension( tests/test_crypto.py::TestX509Ext::test_subject /build/source/tests/test_crypto.py:988: DeprecationWarning: This API is deprecated and will be removed in a future version of pyOpenSSL. You should use pyca/cryptography's X.509 APIs instead. x509.add_extensions([ext3]) tests/test_crypto.py::TestX509Ext::test_missing_subject /build/source/tests/test_crypto.py:999: DeprecationWarning: X509Extension support in pyOpenSSL is deprecated. You should use the APIs in cryptography. X509Extension(b"subjectKeyIdentifier", False, b"hash") tests/test_crypto.py::TestX509Ext::test_invalid_subject[True] tests/test_crypto.py::TestX509Ext::test_invalid_subject[bad_obj1] tests/test_crypto.py::TestX509Ext::test_invalid_subject[hello] tests/test_crypto.py::TestX509Ext::test_invalid_subject[bad_obj3] /build/source/tests/test_crypto.py:1008: DeprecationWarning: X509Extension support in pyOpenSSL is deprecated. You should use the APIs in cryptography. X509Extension( tests/test_crypto.py::TestX509Ext::test_unused_issuer /build/source/tests/test_crypto.py:1021: DeprecationWarning: X509Extension support in pyOpenSSL is deprecated. You should use the APIs in cryptography. ext1 = X509Extension( tests/test_crypto.py::TestX509Ext::test_unused_issuer /build/source/tests/test_crypto.py:1024: DeprecationWarning: This API is deprecated and will be removed in a future version of pyOpenSSL. You should use pyca/cryptography's X.509 APIs instead. x509.add_extensions([ext1]) tests/test_crypto.py::TestX509Ext::test_issuer /build/source/tests/test_crypto.py:1036: DeprecationWarning: X509Extension support in pyOpenSSL is deprecated. You should use the APIs in cryptography. ext2 = X509Extension( tests/test_crypto.py::TestX509Ext::test_issuer /build/source/tests/test_crypto.py:1039: DeprecationWarning: This API is deprecated and will be removed in a future version of pyOpenSSL. You should use pyca/cryptography's X.509 APIs instead. x509.add_extensions([ext2]) tests/test_crypto.py::TestX509Ext::test_missing_issuer /build/source/tests/test_crypto.py:1051: DeprecationWarning: X509Extension support in pyOpenSSL is deprecated. You should use the APIs in cryptography. X509Extension( tests/test_crypto.py::TestX509Ext::test_invalid_issuer[True] tests/test_crypto.py::TestX509Ext::test_invalid_issuer[bad_obj1] tests/test_crypto.py::TestX509Ext::test_invalid_issuer[hello] tests/test_crypto.py::TestX509Ext::test_invalid_issuer[bad_obj3] /build/source/tests/test_crypto.py:1062: DeprecationWarning: X509Extension support in pyOpenSSL is deprecated. You should use the APIs in cryptography. X509Extension( tests/test_crypto.py::TestX509Req::test_sign_with_ungenerated /build/source/tests/test_crypto.py:1613: DeprecationWarning: CSR support in pyOpenSSL is deprecated. You should use the APIs in cryptography. request = X509Req() tests/test_crypto.py::TestX509Req::test_sign_with_public_key /build/source/tests/test_crypto.py:1623: DeprecationWarning: CSR support in pyOpenSSL is deprecated. You should use the APIs in cryptography. request = X509Req() tests/test_crypto.py::TestX509Req::test_sign_with_unknown_digest /build/source/tests/test_crypto.py:1636: DeprecationWarning: CSR support in pyOpenSSL is deprecated. You should use the APIs in cryptography. request = X509Req() tests/test_crypto.py::TestX509Req::test_sign /build/source/tests/test_crypto.py:1648: DeprecationWarning: CSR support in pyOpenSSL is deprecated. You should use the APIs in cryptography. request = X509Req() tests/test_crypto.py::TestX509Req::test_construction /build/source/tests/test_crypto.py:1667: DeprecationWarning: CSR support in pyOpenSSL is deprecated. You should use the APIs in cryptography. request = X509Req() tests/test_crypto.py::TestX509Req::test_version /build/source/tests/test_crypto.py:1676: DeprecationWarning: CSR support in pyOpenSSL is deprecated. You should use the APIs in cryptography. request = X509Req() tests/test_crypto.py::TestX509Req::test_version_wrong_args /build/source/tests/test_crypto.py:1686: DeprecationWarning: CSR support in pyOpenSSL is deprecated. You should use the APIs in cryptography. request = X509Req() tests/test_crypto.py::TestX509Req::test_get_subject /build/source/tests/test_crypto.py:1698: DeprecationWarning: CSR support in pyOpenSSL is deprecated. You should use the APIs in cryptography. request = X509Req() tests/test_crypto.py::TestX509Req::test_add_extensions /build/source/tests/test_crypto.py:1712: DeprecationWarning: CSR support in pyOpenSSL is deprecated. You should use the APIs in cryptography. request = X509Req() tests/test_crypto.py::TestX509Req::test_add_extensions /build/source/tests/test_crypto.py:1714: DeprecationWarning: X509Extension support in pyOpenSSL is deprecated. You should use the APIs in cryptography. [X509Extension(b"basicConstraints", True, b"CA:false")] tests/test_crypto.py::TestX509Req::test_add_extensions /build/source/tests/test_crypto.py:1713: DeprecationWarning: This API is deprecated and will be removed in a future version of pyOpenSSL. You should use pyca/cryptography's X.509 APIs instead. request.add_extensions( tests/test_crypto.py::TestX509Req::test_add_extensions /build/source/tests/test_crypto.py:1716: DeprecationWarning: This API is deprecated and will be removed in a future version of pyOpenSSL. You should use pyca/cryptography's X.509 APIs instead. exts = request.get_extensions() tests/test_crypto.py::TestX509Req::test_add_extensions tests/test_crypto.py::TestX509Req::test_get_extensions tests/test_crypto.py::TestX509Req::test_get_extensions tests/test_crypto.py::TestX509Req::test_get_extensions tests/test_crypto.py::TestX509Req::test_get_extensions /nix/store/kmpg9knz3khv97j8mh9kqaxk98ypvy52-python3.13-pyopenssl-25.1.0/lib/python3.13/site-packages/OpenSSL/crypto.py:1145: DeprecationWarning: X509Extension support in pyOpenSSL is deprecated. You should use the APIs in cryptography. ext = X509Extension.__new__(X509Extension) tests/test_crypto.py::TestX509Req::test_get_extensions /build/source/tests/test_crypto.py:1727: DeprecationWarning: CSR support in pyOpenSSL is deprecated. You should use the APIs in cryptography. request = X509Req() tests/test_crypto.py::TestX509Req::test_get_extensions /build/source/tests/test_crypto.py:1728: DeprecationWarning: This API is deprecated and will be removed in a future version of pyOpenSSL. You should use pyca/cryptography's X.509 APIs instead. exts = request.get_extensions() tests/test_crypto.py::TestX509Req::test_get_extensions /build/source/tests/test_crypto.py:1732: DeprecationWarning: X509Extension support in pyOpenSSL is deprecated. You should use the APIs in cryptography. X509Extension(b"basicConstraints", True, b"CA:true"), tests/test_crypto.py::TestX509Req::test_get_extensions /build/source/tests/test_crypto.py:1733: DeprecationWarning: X509Extension support in pyOpenSSL is deprecated. You should use the APIs in cryptography. X509Extension(b"keyUsage", False, b"digitalSignature"), tests/test_crypto.py::TestX509Req::test_get_extensions /build/source/tests/test_crypto.py:1730: DeprecationWarning: This API is deprecated and will be removed in a future version of pyOpenSSL. You should use pyca/cryptography's X.509 APIs instead. request.add_extensions( tests/test_crypto.py::TestX509Req::test_get_extensions /build/source/tests/test_crypto.py:1736: DeprecationWarning: This API is deprecated and will be removed in a future version of pyOpenSSL. You should use pyca/cryptography's X.509 APIs instead. exts = request.get_extensions() tests/test_crypto.py::TestX509Req::test_get_extensions /build/source/tests/test_crypto.py:1745: DeprecationWarning: This API is deprecated and will be removed in a future version of pyOpenSSL. You should use pyca/cryptography's X.509 APIs instead. exts = request.get_extensions() tests/test_crypto.py::TestX509Req::test_undef_oid /build/source/tests/test_crypto.py:1750: DeprecationWarning: X509Extension support in pyOpenSSL is deprecated. You should use the APIs in cryptography. X509Extension( tests/test_crypto.py::TestX509Req::test_add_extensions_wrong_args /build/source/tests/test_crypto.py:1762: DeprecationWarning: CSR support in pyOpenSSL is deprecated. You should use the APIs in cryptography. request = X509Req() tests/test_crypto.py::TestX509Req::test_add_extensions_wrong_args /build/source/tests/test_crypto.py:1764: DeprecationWarning: This API is deprecated and will be removed in a future version of pyOpenSSL. You should use pyca/cryptography's X.509 APIs instead. request.add_extensions(object()) # type: ignore[arg-type] tests/test_crypto.py::TestX509Req::test_add_extensions_wrong_args /build/source/tests/test_crypto.py:1766: DeprecationWarning: This API is deprecated and will be removed in a future version of pyOpenSSL. You should use pyca/cryptography's X.509 APIs instead. request.add_extensions([object()]) # type: ignore[list-item] tests/test_crypto.py::TestX509Req::test_verify_wrong_args /build/source/tests/test_crypto.py:1773: DeprecationWarning: CSR support in pyOpenSSL is deprecated. You should use the APIs in cryptography. request = X509Req() tests/test_crypto.py::TestX509Req::test_verify_uninitialized_key /build/source/tests/test_crypto.py:1782: DeprecationWarning: CSR support in pyOpenSSL is deprecated. You should use the APIs in cryptography. request = X509Req() tests/test_crypto.py::TestX509Req::test_verify_wrong_key /build/source/tests/test_crypto.py:1793: DeprecationWarning: CSR support in pyOpenSSL is deprecated. You should use the APIs in cryptography. request = X509Req() tests/test_crypto.py::TestX509Req::test_verify_success /build/source/tests/test_crypto.py:1806: DeprecationWarning: CSR support in pyOpenSSL is deprecated. You should use the APIs in cryptography. request = X509Req() tests/test_crypto.py::TestX509Req::test_convert_from_cryptography tests/test_crypto.py::TestX509Req::test_convert_to_cryptography_key /nix/store/kmpg9knz3khv97j8mh9kqaxk98ypvy52-python3.13-pyopenssl-25.1.0/lib/python3.13/site-packages/OpenSSL/crypto.py:2434: DeprecationWarning: CSR support in pyOpenSSL is deprecated. You should use the APIs in cryptography. x509req = X509Req.__new__(X509Req) tests/test_crypto.py::TestX509::test_get_extension /build/source/tests/test_crypto.py:2189: DeprecationWarning: This API is deprecated and will be removed in a future version of pyOpenSSL. You should use pyca/cryptography's X.509 APIs instead. ext = cert.get_extension(0) tests/test_crypto.py::TestX509::test_get_extension tests/test_crypto.py::TestX509::test_get_extension tests/test_crypto.py::TestX509::test_get_extension tests/test_crypto.py::TestX509::test_get_extension tests/test_crypto.py::TestX509::test_get_extension tests/test_crypto.py::TestX509::test_get_extension tests/test_crypto.py::TestX509::test_nullbyte_subjectAltName /nix/store/kmpg9knz3khv97j8mh9kqaxk98ypvy52-python3.13-pyopenssl-25.1.0/lib/python3.13/site-packages/OpenSSL/crypto.py:1679: DeprecationWarning: X509Extension support in pyOpenSSL is deprecated. You should use the APIs in cryptography. ext = X509Extension.__new__(X509Extension) tests/test_crypto.py::TestX509::test_get_extension /build/source/tests/test_crypto.py:2194: DeprecationWarning: This API is deprecated and will be removed in a future version of pyOpenSSL. You should use pyca/cryptography's X.509 APIs instead. ext = cert.get_extension(1) tests/test_crypto.py::TestX509::test_get_extension /build/source/tests/test_crypto.py:2199: DeprecationWarning: This API is deprecated and will be removed in a future version of pyOpenSSL. You should use pyca/cryptography's X.509 APIs instead. ext = cert.get_extension(2) tests/test_crypto.py::TestX509::test_get_extension /build/source/tests/test_crypto.py:2205: DeprecationWarning: This API is deprecated and will be removed in a future version of pyOpenSSL. You should use pyca/cryptography's X.509 APIs instead. cert.get_extension(-1) tests/test_crypto.py::TestX509::test_get_extension /build/source/tests/test_crypto.py:2207: DeprecationWarning: This API is deprecated and will be removed in a future version of pyOpenSSL. You should use pyca/cryptography's X.509 APIs instead. cert.get_extension(4) tests/test_crypto.py::TestX509::test_get_extension /build/source/tests/test_crypto.py:2209: DeprecationWarning: This API is deprecated and will be removed in a future version of pyOpenSSL. You should use pyca/cryptography's X.509 APIs instead. cert.get_extension("hello") # type: ignore[arg-type] tests/test_crypto.py::TestX509::test_nullbyte_subjectAltName /build/source/tests/test_crypto.py:2219: DeprecationWarning: This API is deprecated and will be removed in a future version of pyOpenSSL. You should use pyca/cryptography's X.509 APIs instead. ext = cert.get_extension(3) tests/test_crypto.py::TestEllipticCurve::test_set /build/source/tests/test_crypto.py:3509: DeprecationWarning: get_elliptic_curves is deprecated. You should use the APIs in cryptography instead. assert isinstance(get_elliptic_curves(), set) tests/test_crypto.py::TestEllipticCurve::test_a_curve /build/source/tests/test_crypto.py:3516: DeprecationWarning: get_elliptic_curves is deprecated. You should use the APIs in cryptography instead. curves = get_elliptic_curves() tests/test_crypto.py::TestEllipticCurve::test_a_curve /build/source/tests/test_crypto.py:3518: DeprecationWarning: get_elliptic_curve is deprecated. You should use the APIs in cryptography instead. assert curve.name == get_elliptic_curve(curve.name).name tests/test_crypto.py::TestEllipticCurve::test_a_curve tests/test_crypto.py::TestEllipticCurve::test_not_a_curve /nix/store/kmpg9knz3khv97j8mh9kqaxk98ypvy52-python3.13-pyopenssl-25.1.0/lib/python3.13/site-packages/OpenSSL/crypto.py:578: DeprecationWarning: get_elliptic_curves is deprecated. You should use the APIs in cryptography instead. for curve in get_elliptic_curves(): tests/test_crypto.py::TestEllipticCurve::test_not_a_curve /build/source/tests/test_crypto.py:3526: DeprecationWarning: get_elliptic_curve is deprecated. You should use the APIs in cryptography instead. get_elliptic_curve("this curve was just invented") tests/test_crypto.py::TestEllipticCurve::test_repr /build/source/tests/test_crypto.py:3533: DeprecationWarning: get_elliptic_curves is deprecated. You should use the APIs in cryptography instead. curves = get_elliptic_curves() tests/test_crypto.py::TestEllipticCurve::test_to_EC_KEY /build/source/tests/test_crypto.py:3542: DeprecationWarning: get_elliptic_curves is deprecated. You should use the APIs in cryptography instead. curves = get_elliptic_curves() tests/test_crypto.py: 12 warnings /build/source/tests/test_crypto.py:3559: DeprecationWarning: get_elliptic_curves is deprecated. You should use the APIs in cryptography instead. return next(iter(get_elliptic_curves())) tests/test_crypto.py::TestEllipticCurveEquality::test_differentEq tests/test_crypto.py::TestEllipticCurveEquality::test_differentNe /build/source/tests/test_crypto.py:3566: DeprecationWarning: get_elliptic_curves is deprecated. You should use the APIs in cryptography instead. return list(get_elliptic_curves())[1] tests/test_crypto.py::TestEllipticCurveHash::test_contains /build/source/tests/test_crypto.py:3684: DeprecationWarning: get_elliptic_curves is deprecated. You should use the APIs in cryptography instead. curve = next(iter(get_elliptic_curves())) tests/test_crypto.py::TestEllipticCurveHash::test_does_not_contain /build/source/tests/test_crypto.py:3693: DeprecationWarning: get_elliptic_curves is deprecated. You should use the APIs in cryptography instead. all_curves = list(get_elliptic_curves()) tests/test_ssl.py::TestContext::test_set_cipher_list[hello world:AES128-SHA1] /nix/store/kmpg9knz3khv97j8mh9kqaxk98ypvy52-python3.13-pyopenssl-25.1.0/lib/python3.13/site-packages/OpenSSL/SSL.py:845: DeprecationWarning: str for cipher_list is no longer accepted, use bytes return f(self, *args, **kwargs) tests/test_ssl.py: 108 warnings /nix/store/kmpg9knz3khv97j8mh9kqaxk98ypvy52-python3.13-pyopenssl-25.1.0/lib/python3.13/site-packages/OpenSSL/SSL.py:845: DeprecationWarning: Passing pyOpenSSL PKey objects is deprecated. You should use a cryptography private key instead. return f(self, *args, **kwargs) tests/test_ssl.py: 117 warnings /nix/store/kmpg9knz3khv97j8mh9kqaxk98ypvy52-python3.13-pyopenssl-25.1.0/lib/python3.13/site-packages/OpenSSL/SSL.py:845: DeprecationWarning: Passing pyOpenSSL X509 objects is deprecated. You should use a cryptography.x509.Certificate instead. return f(self, *args, **kwargs) tests/test_ssl.py::TestContext::test_set_proto_version /build/source/tests/test_ssl.py:1066: DeprecationWarning: Attempting to mutate a Context after a Connection was created. In the future, this will raise an exception client_context.set_max_proto_version(0) tests/test_ssl.py::TestContext::test_set_verify_callback_reference tests/test_ssl.py::TestContext::test_set_verify_callback_reference tests/test_ssl.py::TestContext::test_set_verify_callback_reference tests/test_ssl.py::TestContext::test_set_verify_callback_reference tests/test_ssl.py::TestContext::test_set_verify_callback_reference /build/source/tests/test_ssl.py:1494: DeprecationWarning: Attempting to mutate a Context after a Connection was created. In the future, this will raise an exception clientContext.set_verify(VERIFY_PEER, verify_callback) tests/test_ssl.py::TestContext::test_set_tmp_ecdh /build/source/tests/test_ssl.py:1748: DeprecationWarning: get_elliptic_curves is deprecated. You should use the APIs in cryptography instead. for curve in get_elliptic_curves(): tests/test_ssl.py::TestContextConnection::test_use_privatekey[connection] /build/source/tests/test_ssl.py:2251: DeprecationWarning: Passing pyOpenSSL PKey objects is deprecated. You should use a cryptography private key instead. ctx_or_conn.use_privatekey(key) tests/test_ssl.py::TestContextConnection::test_use_privatekey_wrong_key[connection] /build/source/tests/test_ssl.py:2268: DeprecationWarning: Passing pyOpenSSL X509 objects is deprecated. You should use a cryptography.x509.Certificate instead. ctx_or_conn.use_certificate( tests/test_ssl.py::TestContextConnection::test_use_privatekey_wrong_key[connection] /build/source/tests/test_ssl.py:2272: DeprecationWarning: Passing pyOpenSSL PKey objects is deprecated. You should use a cryptography private key instead. ctx_or_conn.use_privatekey(key) tests/test_ssl.py::TestContextConnection::test_use_certificate[connection] /build/source/tests/test_ssl.py:2283: DeprecationWarning: Passing pyOpenSSL X509 objects is deprecated. You should use a cryptography.x509.Certificate instead. ctx_or_conn.use_certificate( tests/test_ssl.py::TestContextConnection::test_use_certificate_uninitialized[connection] /build/source/tests/test_ssl.py:2309: DeprecationWarning: Passing pyOpenSSL X509 objects is deprecated. You should use a cryptography.x509.Certificate instead. ctx_or_conn.use_certificate(X509()) tests/test_ssl.py::TestConnection::test_set_verify_callback_reference /build/source/tests/test_ssl.py:2824: DeprecationWarning: Attempting to mutate a Context after a Connection was created. In the future, this will raise an exception context.set_verify(VERIFY_NONE) tests/test_ssl.py::TestMemoryBIO::test_set_empty_ca_list /build/source/tests/test_ssl.py:3960: DeprecationWarning: Attempting to mutate a Context after a Connection was created. In the future, this will raise an exception ctx.set_client_ca_list([]) tests/test_ssl.py::TestMemoryBIO::test_set_one_ca_list /build/source/tests/test_ssl.py:3977: DeprecationWarning: Attempting to mutate a Context after a Connection was created. In the future, this will raise an exception ctx.set_client_ca_list([cadesc]) tests/test_ssl.py::TestMemoryBIO::test_set_multiple_ca_list /build/source/tests/test_ssl.py:3998: DeprecationWarning: Attempting to mutate a Context after a Connection was created. In the future, this will raise an exception ctx.set_client_ca_list(L) tests/test_ssl.py::TestMemoryBIO::test_reset_ca_list /build/source/tests/test_ssl.py:4018: DeprecationWarning: Attempting to mutate a Context after a Connection was created. In the future, this will raise an exception ctx.set_client_ca_list([sedesc, cldesc]) tests/test_ssl.py::TestMemoryBIO::test_reset_ca_list /build/source/tests/test_ssl.py:4019: DeprecationWarning: Attempting to mutate a Context after a Connection was created. In the future, this will raise an exception ctx.set_client_ca_list([cadesc]) tests/test_ssl.py::TestMemoryBIO::test_mutated_ca_list /build/source/tests/test_ssl.py:4038: DeprecationWarning: Attempting to mutate a Context after a Connection was created. In the future, this will raise an exception ctx.set_client_ca_list([cadesc]) tests/test_ssl.py::TestMemoryBIO::test_one_add_client_ca /build/source/tests/test_ssl.py:4062: DeprecationWarning: Attempting to mutate a Context after a Connection was created. In the future, this will raise an exception ctx.add_client_ca(cacert) tests/test_ssl.py::TestMemoryBIO::test_multiple_add_client_ca /build/source/tests/test_ssl.py:4079: DeprecationWarning: Attempting to mutate a Context after a Connection was created. In the future, this will raise an exception ctx.add_client_ca(cacert) tests/test_ssl.py::TestMemoryBIO::test_multiple_add_client_ca /build/source/tests/test_ssl.py:4080: DeprecationWarning: Attempting to mutate a Context after a Connection was created. In the future, this will raise an exception ctx.add_client_ca(secert.to_cryptography()) tests/test_ssl.py::TestMemoryBIO::test_set_and_add_client_ca /build/source/tests/test_ssl.py:4100: DeprecationWarning: Attempting to mutate a Context after a Connection was created. In the future, this will raise an exception ctx.set_client_ca_list([cadesc, sedesc]) tests/test_ssl.py::TestMemoryBIO::test_set_and_add_client_ca /build/source/tests/test_ssl.py:4101: DeprecationWarning: Attempting to mutate a Context after a Connection was created. In the future, this will raise an exception ctx.add_client_ca(clcert) tests/test_ssl.py::TestMemoryBIO::test_set_after_add_client_ca /build/source/tests/test_ssl.py:4120: DeprecationWarning: Attempting to mutate a Context after a Connection was created. In the future, this will raise an exception ctx.add_client_ca(clcert.to_cryptography()) tests/test_ssl.py::TestMemoryBIO::test_set_after_add_client_ca /build/source/tests/test_ssl.py:4121: DeprecationWarning: Attempting to mutate a Context after a Connection was created. In the future, this will raise an exception ctx.set_client_ca_list([cadesc]) tests/test_ssl.py::TestMemoryBIO::test_set_after_add_client_ca /build/source/tests/test_ssl.py:4122: DeprecationWarning: Attempting to mutate a Context after a Connection was created. In the future, this will raise an exception ctx.add_client_ca(secert) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =============== 456 passed, 9 deselected, 361 warnings in 7.20s ================ Finished executing pytestCheckPhase Running phase: pytestcachePhase Running phase: pytestRemoveBytecodePhase