From nobody Thu Sep 14 02:59:36 2023 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RmMVc25kxz4tG8Z for ; Thu, 14 Sep 2023 02:59:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RmMVc13F8z3bRr for ; Thu, 14 Sep 2023 02:59:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694660376; a=rsa-sha256; cv=none; b=PvEJiWue7h+Ls2nH4HkgXhNWsnjJ4AsKd0OCeaW2vNg6YxIktKNfWmSk76e7uUM2j++Yqy bO9BqV6fylOFElQcLRe80Pw1kin8NLsTz+Otm5o07bpM88BOziLpsaJ5yjUN+KQyysE8l1 zeDzXdhquzNFzmqjeyDaxw4WlOZ95iHiRlL/ggLQUDQQ1EUmHSvzMnx5ipx9dN4blQQ2Wn 7UBeQZqR3eYDmsYpw0d6jwVhvAZ6hi2TAb1zHBMKO7I1n5gFIy2m+Nzr0mPf8+D7PGRvOc SWHY3hzg+7dHWExw36UByxWoM1uq6et+GxDO/kLv+oYtsf1RcDKY0nnwArma9A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694660376; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=FrrcJUKRpS/v2uIANQX8WQ7R/T1CUpu3Xn9dvH4qMpY=; b=IGUCzLdzHArSh1ly8q/JkKG7rF18GtWWWrkIKLlG54r5jGo4pDRuYQEKo2Gh81JaVEMfG6 2rxjpGmMdC26sFNsyW2dcrDb2dgdvsml487riE4GeWARn9u1cFTUwclxHA/baTxSBWAM7t gnT215k0YjGjTW9A4RO0WgmkHi75ckoAmM1HouG+RCvL0SccU+duA/Nz1a7FBzUGUwN2Sd lvuRKOqjeo4iT73pmVGKPvvlKAzkKntxn5y+9PBTvHSKaLosbF2soIZvrAG0mGxy3M1CiC 4sxCzaJzdYECE9GMJnTc4dx0eILaiO9upTpvE6Y0kbU5eAuAf266GrScQBstaA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RmMVc088Vzg0d for ; Thu, 14 Sep 2023 02:59:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 38E2xZRJ057272 for ; Thu, 14 Sep 2023 02:59:35 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 38E2xZqa057271 for ports-bugs@FreeBSD.org; Thu, 14 Sep 2023 02:59:35 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 273770] security/py-cryptography: Run-time error with OpenSSL 3.0 Date: Thu, 14 Sep 2023 02:59:36 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: yasu@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: sunpoet@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D273770 Bug ID: 273770 Summary: security/py-cryptography: Run-time error with OpenSSL 3.0 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: sunpoet@FreeBSD.org Reporter: yasu@freebsd.org Assignee: sunpoet@FreeBSD.org Flags: maintainer-feedback?(sunpoet@FreeBSD.org) If I run certbot on 15-CURRENT amd64, run-time error happens as following. yasu@rolling-vm-freebsd5[1004]% uname -a FreeBSD rolling-vm-freebsd5.home.utahime.org 15.0-CURRENT FreeBSD 15.0-CURR= ENT amd64 1500000 #0 main-n265240-16218618101: Tue Sep 12 05:16:41 JST 2023=20= =20=20=20 rootz@rolling-vm-freebsd5.home.utahime.org:/usr/obj/usr/src/amd64.amd64/sys= /GENERIC amd64 yasu@rolling-vm-freebsd5[1005]% certbot Traceback (most recent call last): File "/usr/local/bin/certbot", line 33, in sys.exit(load_entry_point('certbot=3D=3D2.6.0', 'console_scripts', 'certbot')()) File "/usr/local/bin/certbot", line 25, in importlib_load_entry_point return next(matches).load() File "/usr/local/lib/python3.9/importlib/metadata.py", line 86, in load module =3D import_module(match.group('module')) File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1030, in _gcd_import File "", line 1007, in _find_and_load File "", line 986, in _find_and_load_unlocked File "", line 680, in _load_unlocked File "", line 850, in exec_module File "", line 228, in _call_with_frames_remo= ved File "/usr/local/lib/python3.9/site-packages/certbot/main.py", line 6, in from certbot._internal import main as internal_main File "/usr/local/lib/python3.9/site-packages/certbot/_internal/main.py", = line 21, in import josepy as jose File "/usr/local/lib/python3.9/site-packages/josepy/__init__.py", line 40= , in from josepy.json_util import ( File "/usr/local/lib/python3.9/site-packages/josepy/json_util.py", line 1= 4, in from OpenSSL import crypto File "/usr/local/lib/python3.9/site-packages/OpenSSL/__init__.py", line 8= , in from OpenSSL import SSL, crypto File "/usr/local/lib/python3.9/site-packages/OpenSSL/SSL.py", line 9, in from OpenSSL._util import ( File "/usr/local/lib/python3.9/site-packages/OpenSSL/_util.py", line 6, in from cryptography.hazmat.bindings.openssl.binding import Binding File "/usr/local/lib/python3.9/site-packages/cryptography/hazmat/bindings/openss= l/binding.py", line 167, in Binding.init_static_locks() File "/usr/local/lib/python3.9/site-packages/cryptography/hazmat/bindings/openss= l/binding.py", line 134, in init_static_locks cls._ensure_ffi_initialized() File "/usr/local/lib/python3.9/site-packages/cryptography/hazmat/bindings/openss= l/binding.py", line 123, in _ensure_ffi_initialized _legacy_provider_error(cls._legacy_provider_loaded) File "/usr/local/lib/python3.9/site-packages/cryptography/hazmat/bindings/openss= l/binding.py", line 43, in _legacy_provider_error raise RuntimeError( RuntimeError: OpenSSL 3.0's legacy provider failed to load. This is a fatal error by default, but cryptography supports running without legacy algorith= ms by setting the environment variable CRYPTOGRAPHY_OPENSSL_NO_LEGACY. If you = did not expect this error, you have likely made a mistake with your OpenSSL configuration. yasu@rolling-vm-freebsd5[1006]% And different run-time error happens if I install certbot with 'DEFAULT_VERSIONS+=3Dssl=3Dopenssl30' and run it on 13.2-RELEASE amd64. yasu@rolling-vm-freebsd6[1002]% uname -a FreeBSD rolling-vm-freebsd6.home.utahime.org 13.2-RELEASE-p3 FreeBSD 13.2-RELEASE-p3 GENERIC amd64 yasu@rolling-vm-freebsd6[1003]% certbot Traceback (most recent call last): File "/usr/local/bin/certbot", line 33, in sys.exit(load_entry_point('certbot=3D=3D2.6.0', 'console_scripts', 'certbot')()) File "/usr/local/bin/certbot", line 25, in importlib_load_entry_point return next(matches).load() File "/usr/local/lib/python3.9/importlib/metadata.py", line 86, in load module =3D import_module(match.group('module')) File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1030, in _gcd_import File "", line 1007, in _find_and_load File "", line 986, in _find_and_load_unlocked File "", line 680, in _load_unlocked File "", line 850, in exec_module File "", line 228, in _call_with_frames_remo= ved File "/usr/local/lib/python3.9/site-packages/certbot/main.py", line 6, in from certbot._internal import main as internal_main File "/usr/local/lib/python3.9/site-packages/certbot/_internal/main.py", = line 21, in import josepy as jose File "/usr/local/lib/python3.9/site-packages/josepy/__init__.py", line 40= , in from josepy.json_util import ( File "/usr/local/lib/python3.9/site-packages/josepy/json_util.py", line 1= 4, in from OpenSSL import crypto File "/usr/local/lib/python3.9/site-packages/OpenSSL/__init__.py", line 8= , in from OpenSSL import SSL, crypto File "/usr/local/lib/python3.9/site-packages/OpenSSL/SSL.py", line 9, in from OpenSSL._util import ( File "/usr/local/lib/python3.9/site-packages/OpenSSL/_util.py", line 6, in from cryptography.hazmat.bindings.openssl.binding import Binding File "/usr/local/lib/python3.9/site-packages/cryptography/hazmat/bindings/openss= l/binding.py", line 15, in from cryptography.exceptions import InternalError File "/usr/local/lib/python3.9/site-packages/cryptography/exceptions.py", line 9, in from cryptography.hazmat.bindings._rust import exceptions as rust_exceptions ImportError: /usr/local/lib/python3.9/site-packages/cryptography/hazmat/bindings/_rust.a= bi3.so: Undefined symbol "EVP_default_properties_is_fips_enabled" yasu@rolling-vm-freebsd6[1004]% --=20 You are receiving this mail because: You are the assignee for the bug.=