Date: Wed, 31 Jan 2024 00:19:59 -0500 From: Paul Procacci <pprocacci@gmail.com> To: Paul Kagan <pkagan@videotron.ca> Cc: questions@freebsd.org Subject: Re: certbot does not work Message-ID: <CAFbbPuh41z3DOKKWREYNzQ8k-J3o0wa3fsJPC2F%2BT5n5fkn0Bw@mail.gmail.com> In-Reply-To: <00c501da53f6$222d8640$668892c0$@videotron.ca> References: <00c501da53f6$222d8640$668892c0$@videotron.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000f6f690061037068c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Jan 30, 2024 at 10:33=E2=80=AFPM Paul Kagan <pkagan@videotron.ca> w= rote: > root@videotron:/usr/ports/security/openssl # > @CRYPTOGRAPHY_OPENSSL_NO_LEGACY > > @CRYPTOGRAPHY_OPENSSL_NO_LEGACY: Command not found. > > root@videotron:/usr/ports/security/openssl # setenv > CRYPTOGRAPHY_OPENSSL_NO_LEGACY=3Dyes ; certbot > > setenv: Variable name must contain alphanumeric characters. > > Traceback (most recent call last): > > File "/usr/local/bin/certbot", line 33, in <module> > > sys.exit(load_entry_point('certbot=3D=3D2.8.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 "<frozen importlib._bootstrap>", line 1030, in _gcd_import > > File "<frozen importlib._bootstrap>", line 1007, in _find_and_load > > File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocke= d > > File "<frozen importlib._bootstrap>", line 680, in _load_unlocked > > File "<frozen importlib._bootstrap_external>", line 850, in exec_module > > File "<frozen importlib._bootstrap>", line 228, in > _call_with_frames_removed > > File "/usr/local/lib/python3.9/site-packages/certbot/main.py", line 6, in > <module> > > from certbot._internal import main as internal_main > > File "/usr/local/lib/python3.9/site-packages/certbot/_internal/main.py", > line 21, in <module> > > import josepy as jose > > File "/usr/local/lib/python3.9/site-packages/josepy/__init__.py", line 40= , > in <module> > > from josepy.json_util import ( > > File "/usr/local/lib/python3.9/site-packages/josepy/json_util.py", line > 24, in <module> > > from OpenSSL import crypto > > File "/usr/local/lib/python3.9/site-packages/OpenSSL/__init__.py", line 8= , > in <module> > > from OpenSSL import SSL, crypto > > File "/usr/local/lib/python3.9/site-packages/OpenSSL/SSL.py", line 9, in > <module> > > from OpenSSL._util import ( > > File "/usr/local/lib/python3.9/site-packages/OpenSSL/_util.py", line 6, i= n > <module> > > from cryptography.hazmat.bindings.openssl.binding import Binding > > File > "/usr/local/lib/python3.9/site-packages/cryptography/hazmat/bindings/open= ssl/binding.py", > line 167, in <module> > > Binding.init_static_locks() > > File > "/usr/local/lib/python3.9/site-packages/cryptography/hazmat/bindings/open= ssl/binding.py", > line 134, in init_static_locks > > cls._ensure_ffi_initialized() > > File > "/usr/local/lib/python3.9/site-packages/cryptography/hazmat/bindings/open= ssl/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/open= ssl/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 > algorithms by setting the environment variable > CRYPTOGRAPHY_OPENSSL_NO_LEGACY. If you did not expect this error, you hav= e > likely made a mistake with your OpenSSL configuration. > > root@videotron:/usr/ports/security/openssl # setenv > CRYPTOGRAPHY_OPENSSL_NO_LEGACY=3Dyes ; certbot > > setenv: Variable name must contain alphanumeric characters. > > Traceback (most recent call last): > > File "/usr/local/bin/certbot", line 33, in <module> > > sys.exit(load_entry_point('certbot=3D=3D2.8.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 "<frozen importlib._bootstrap>", line 1030, in _gcd_import > > File "<frozen importlib._bootstrap>", line 1007, in _find_and_load > > File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocke= d > > File "<frozen importlib._bootstrap>", line 680, in _load_unlocked > > File "<frozen importlib._bootstrap_external>", line 850, in exec_module > > File "<frozen importlib._bootstrap>", line 228, in > _call_with_frames_removed > > File "/usr/local/lib/python3.9/site-packages/certbot/main.py", line 6, in > <module> > > from certbot._internal import main as internal_main > > File "/usr/local/lib/python3.9/site-packages/certbot/_internal/main.py", > line 21, in <module> > > import josepy as jose > > File "/usr/local/lib/python3.9/site-packages/josepy/__init__.py", line 40= , > in <module> > > from josepy.json_util import ( > > File "/usr/local/lib/python3.9/site-packages/josepy/json_util.py", line > 24, in <module> > > from OpenSSL import crypto > > File "/usr/local/lib/python3.9/site-packages/OpenSSL/__init__.py", line 8= , > in <module> > > from OpenSSL import SSL, crypto > > File "/usr/local/lib/python3.9/site-packages/OpenSSL/SSL.py", line 9, in > <module> > > from OpenSSL._util import ( > > File "/usr/local/lib/python3.9/site-packages/OpenSSL/_util.py", line 6, i= n > <module> > > from cryptography.hazmat.bindings.openssl.binding import Binding > > File > "/usr/local/lib/python3.9/site-packages/cryptography/hazmat/bindings/open= ssl/binding.py", > line 167, in <module> > > Binding.init_static_locks() > > File > "/usr/local/lib/python3.9/site-packages/cryptography/hazmat/bindings/open= ssl/binding.py", > line 134, in init_static_locks > > cls._ensure_ffi_initialized() > > File > "/usr/local/lib/python3.9/site-packages/cryptography/hazmat/bindings/open= ssl/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/open= ssl/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 > algorithms by setting the environment variable > CRYPTOGRAPHY_OPENSSL_NO_LEGACY. If you did not expect this error, you hav= e > likely made a mistake with your OpenSSL configuration. > > root@videotron:/usr/ports/security/openssl # > What is your shell? setenv is a csh builtin. The default shell was changed to /bin/ss. Did you account for this change? ~Paul --=20 __________________ :(){ :|:& };: --000000000000f6f690061037068c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div><div dir=3D"ltr"><br></div><br><div class=3D"gmail_qu= ote"><div dir=3D"ltr" class=3D"gmail_attr">On Tue, Jan 30, 2024 at 10:33=E2= =80=AFPM Paul Kagan <<a href=3D"mailto:pkagan@videotron.ca">pkagan@video= tron.ca</a>> wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"= margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-lef= t:1ex"><div class=3D"msg-6135156311282322638"><div lang=3D"FR" style=3D"ove= rflow-wrap: break-word;"><div class=3D"m_-6135156311282322638WordSection1">= <p class=3D"MsoNormal">root@videotron:/usr/ports/security/openssl # @CRYPTO= GRAPHY_OPENSSL_NO_LEGACY<u></u><u></u></p><p class=3D"MsoNormal">@CRYPTOGRA= PHY_OPENSSL_NO_LEGACY: Command not found.<u></u><u></u></p><p class=3D"MsoN= ormal">root@videotron:/usr/ports/security/openssl # setenv CRYPTOGRAPHY_OPE= NSSL_NO_LEGACY=3Dyes ; certbot<u></u><u></u></p><p class=3D"MsoNormal">sete= nv: Variable name must contain alphanumeric characters.<u></u><u></u></p><p= class=3D"MsoNormal">Traceback (most recent call last):<u></u><u></u></p><p= class=3D"MsoNormal">File "/usr/local/bin/certbot", line 33, in &= lt;module><u></u><u></u></p><p class=3D"MsoNormal">sys.exit(load_entry_p= oint('certbot=3D=3D2.8.0', 'console_scripts', 'certbot&= #39;)())<u></u><u></u></p><p class=3D"MsoNormal">File "/usr/local/bin/= certbot", line 25, in importlib_load_entry_point<u></u><u></u></p><p c= lass=3D"MsoNormal">return next(matches).load()<u></u><u></u></p><p class=3D= "MsoNormal">File "/usr/local/lib/python3.9/importlib/metadata.py"= , line 86, in load<u></u><u></u></p><p class=3D"MsoNormal">module =3D impor= t_module(match.group('module'))<u></u><u></u></p><p class=3D"MsoNor= mal">File "/usr/local/lib/python3.9/importlib/__init__.py", line = 127, in import_module<u></u><u></u></p><p class=3D"MsoNormal">return _boots= trap._gcd_import(name[level:], package, level)<u></u><u></u></p><p class=3D= "MsoNormal">File "<frozen importlib._bootstrap>", line 1030= , in _gcd_import<u></u><u></u></p><p class=3D"MsoNormal">File "<fro= zen importlib._bootstrap>", line 1007, in _find_and_load<u></u><u><= /u></p><p class=3D"MsoNormal">File "<frozen importlib._bootstrap>= ;", line 986, in _find_and_load_unlocked<u></u><u></u></p><p class=3D"= MsoNormal">File "<frozen importlib._bootstrap>", line 680, = in _load_unlocked<u></u><u></u></p><p class=3D"MsoNormal">File "<fr= ozen importlib._bootstrap_external>", line 850, in exec_module<u></= u><u></u></p><p class=3D"MsoNormal">File "<frozen importlib._bootst= rap>", line 228, in _call_with_frames_removed<u></u><u></u></p><p c= lass=3D"MsoNormal">File "/usr/local/lib/python3.9/site-packages/certbo= t/main.py", line 6, in <module><u></u><u></u></p><p class=3D"Mso= Normal">from certbot._internal import main as internal_main<u></u><u></u></= p><p class=3D"MsoNormal">File "/usr/local/lib/python3.9/site-packages/= certbot/_internal/main.py", line 21, in <module><u></u><u></u></= p><p class=3D"MsoNormal">import josepy as jose<u></u><u></u></p><p class=3D= "MsoNormal">File "/usr/local/lib/python3.9/site-packages/josepy/__init= __.py", line 40, in <module><u></u><u></u></p><p class=3D"MsoNor= mal">from josepy.json_util import (<u></u><u></u></p><p class=3D"MsoNormal"= >File "/usr/local/lib/python3.9/site-packages/josepy/json_util.py"= ;, line 24, in <module><u></u><u></u></p><p class=3D"MsoNormal">from = OpenSSL import crypto<u></u><u></u></p><p class=3D"MsoNormal">File "/u= sr/local/lib/python3.9/site-packages/OpenSSL/__init__.py", line 8, in = <module><u></u><u></u></p><p class=3D"MsoNormal">from OpenSSL import = SSL, crypto<u></u><u></u></p><p class=3D"MsoNormal">File "/usr/local/l= ib/python3.9/site-packages/OpenSSL/SSL.py", line 9, in <module><= u></u><u></u></p><p class=3D"MsoNormal">from OpenSSL._util import (<u></u><= u></u></p><p class=3D"MsoNormal">File "/usr/local/lib/python3.9/site-p= ackages/OpenSSL/_util.py", line 6, in <module><u></u><u></u></p>= <p class=3D"MsoNormal">from cryptography.hazmat.bindings.openssl.binding im= port Binding<u></u><u></u></p><p class=3D"MsoNormal">File "/usr/local/= lib/python3.9/site-packages/cryptography/hazmat/bindings/openssl/binding.py= ", line 167, in <module><u></u><u></u></p><p class=3D"MsoNormal"= >Binding.init_static_locks()<u></u><u></u></p><p class=3D"MsoNormal">File &= quot;/usr/local/lib/python3.9/site-packages/cryptography/hazmat/bindings/op= enssl/binding.py", line 134, in init_static_locks<u></u><u></u></p><p = class=3D"MsoNormal">cls._ensure_ffi_initialized()<u></u><u></u></p><p class= =3D"MsoNormal">File "/usr/local/lib/python3.9/site-packages/cryptograp= hy/hazmat/bindings/openssl/binding.py", line 123, in _ensure_ffi_initi= alized<u></u><u></u></p><p class=3D"MsoNormal">_legacy_provider_error(cls._= legacy_provider_loaded)<u></u><u></u></p><p class=3D"MsoNormal">File "= /usr/local/lib/python3.9/site-packages/cryptography/hazmat/bindings/openssl= /binding.py", line 43, in _legacy_provider_error<u></u><u></u></p><p c= lass=3D"MsoNormal">raise RuntimeError(<u></u><u></u></p><p class=3D"MsoNorm= al">RuntimeError: OpenSSL 3.0's legacy provider failed to load. This is= a fatal error by default, but cryptography supports running without legacy= algorithms by setting the environment variable CRYPTOGRAPHY_OPENSSL_NO_LEG= ACY. If you did not expect this error, you have likely made a mistake with = your OpenSSL configuration.<u></u><u></u></p><p class=3D"MsoNormal">root@vi= deotron:/usr/ports/security/openssl # setenv CRYPTOGRAPHY_OPENSSL_NO_LEGACY= =3Dyes ; certbot<u></u><u></u></p><p class=3D"MsoNormal">setenv: Variable n= ame must contain alphanumeric characters.<u></u><u></u></p><p class=3D"MsoN= ormal">Traceback (most recent call last):<u></u><u></u></p><p class=3D"MsoN= ormal">File "/usr/local/bin/certbot", line 33, in <module><= u></u><u></u></p><p class=3D"MsoNormal">sys.exit(load_entry_point('cert= bot=3D=3D2.8.0', 'console_scripts', 'certbot')())<u></u= ><u></u></p><p class=3D"MsoNormal">File "/usr/local/bin/certbot",= line 25, in importlib_load_entry_point<u></u><u></u></p><p class=3D"MsoNor= mal">return next(matches).load()<u></u><u></u></p><p class=3D"MsoNormal">Fi= le "/usr/local/lib/python3.9/importlib/metadata.py", line 86, in = load<u></u><u></u></p><p class=3D"MsoNormal">module =3D import_module(match= .group('module'))<u></u><u></u></p><p class=3D"MsoNormal">File &quo= t;/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import= _module<u></u><u></u></p><p class=3D"MsoNormal">return _bootstrap._gcd_impo= rt(name[level:], package, level)<u></u><u></u></p><p class=3D"MsoNormal">Fi= le "<frozen importlib._bootstrap>", line 1030, in _gcd_impo= rt<u></u><u></u></p><p class=3D"MsoNormal">File "<frozen importlib.= _bootstrap>", line 1007, in _find_and_load<u></u><u></u></p><p clas= s=3D"MsoNormal">File "<frozen importlib._bootstrap>", line = 986, in _find_and_load_unlocked<u></u><u></u></p><p class=3D"MsoNormal">Fil= e "<frozen importlib._bootstrap>", line 680, in _load_unloc= ked<u></u><u></u></p><p class=3D"MsoNormal">File "<frozen importlib= ._bootstrap_external>", line 850, in exec_module<u></u><u></u></p><= p class=3D"MsoNormal">File "<frozen importlib._bootstrap>",= line 228, in _call_with_frames_removed<u></u><u></u></p><p class=3D"MsoNor= mal">File "/usr/local/lib/python3.9/site-packages/certbot/main.py"= ;, line 6, in <module><u></u><u></u></p><p class=3D"MsoNormal">from c= ertbot._internal import main as internal_main<u></u><u></u></p><p class=3D"= MsoNormal">File "/usr/local/lib/python3.9/site-packages/certbot/_inter= nal/main.py", line 21, in <module><u></u><u></u></p><p class=3D"= MsoNormal">import josepy as jose<u></u><u></u></p><p class=3D"MsoNormal">Fi= le "/usr/local/lib/python3.9/site-packages/josepy/__init__.py", l= ine 40, in <module><u></u><u></u></p><p class=3D"MsoNormal">from jose= py.json_util import (<u></u><u></u></p><p class=3D"MsoNormal">File "/u= sr/local/lib/python3.9/site-packages/josepy/json_util.py", line 24, in= <module><u></u><u></u></p><p class=3D"MsoNormal">from OpenSSL import= crypto<u></u><u></u></p><p class=3D"MsoNormal">File "/usr/local/lib/p= ython3.9/site-packages/OpenSSL/__init__.py", line 8, in <module>= <u></u><u></u></p><p class=3D"MsoNormal">from OpenSSL import SSL, crypto<u>= </u><u></u></p><p class=3D"MsoNormal">File "/usr/local/lib/python3.9/s= ite-packages/OpenSSL/SSL.py", line 9, in <module><u></u><u></u><= /p><p class=3D"MsoNormal">from OpenSSL._util import (<u></u><u></u></p><p c= lass=3D"MsoNormal">File "/usr/local/lib/python3.9/site-packages/OpenSS= L/_util.py", line 6, in <module><u></u><u></u></p><p class=3D"Ms= oNormal">from cryptography.hazmat.bindings.openssl.binding import Binding<u= ></u><u></u></p><p class=3D"MsoNormal">File "/usr/local/lib/python3.9/= site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 1= 67, in <module><u></u><u></u></p><p class=3D"MsoNormal">Binding.init_= static_locks()<u></u><u></u></p><p class=3D"MsoNormal">File "/usr/loca= l/lib/python3.9/site-packages/cryptography/hazmat/bindings/openssl/binding.= py", line 134, in init_static_locks<u></u><u></u></p><p class=3D"MsoNo= rmal">cls._ensure_ffi_initialized()<u></u><u></u></p><p class=3D"MsoNormal"= >File "/usr/local/lib/python3.9/site-packages/cryptography/hazmat/bind= ings/openssl/binding.py", line 123, in _ensure_ffi_initialized<u></u><= u></u></p><p class=3D"MsoNormal">_legacy_provider_error(cls._legacy_provide= r_loaded)<u></u><u></u></p><p class=3D"MsoNormal">File "/usr/local/lib= /python3.9/site-packages/cryptography/hazmat/bindings/openssl/binding.py&qu= ot;, line 43, in _legacy_provider_error<u></u><u></u></p><p class=3D"MsoNor= mal">raise RuntimeError(<u></u><u></u></p><p class=3D"MsoNormal">RuntimeErr= or: OpenSSL 3.0's legacy provider failed to load. This is a fatal error= by default, but cryptography supports running without legacy algorithms by= setting the environment variable CRYPTOGRAPHY_OPENSSL_NO_LEGACY. If you di= d not expect this error, you have likely made a mistake with your OpenSSL c= onfiguration.<u></u><u></u></p><p class=3D"MsoNormal">root@videotron:/usr/p= orts/security/openssl #<u></u><u></u></p></div></div></div></blockquote></d= iv><br clear=3D"all"></div>What is your shell?<br><div>setenv is a csh buil= tin.</div><div>The default shell was changed to /bin/ss.=C2=A0 Did you acco= unt for this change?<br><br></div><div>~Paul<br></div><br><div><span class= =3D"gmail_signature_prefix">-- </span><br><div dir=3D"ltr" class=3D"gmail_s= ignature">__________________<br><br>:(){ :|:& };:</div></div></div> --000000000000f6f690061037068c--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFbbPuh41z3DOKKWREYNzQ8k-J3o0wa3fsJPC2F%2BT5n5fkn0Bw>