Date: Wed, 31 Jan 2024 00:21:26 -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: <CAFbbPugryaz=u4Y41aG6gKaPPEf427uV6a2ZSaowtW8E-OoG8w@mail.gmail.com> In-Reply-To: <CAFbbPuh41z3DOKKWREYNzQ8k-J3o0wa3fsJPC2F%2BT5n5fkn0Bw@mail.gmail.com> References: <00c501da53f6$222d8640$668892c0$@videotron.ca> <CAFbbPuh41z3DOKKWREYNzQ8k-J3o0wa3fsJPC2F%2BT5n5fkn0Bw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--00000000000028ade70610370c1d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Jan 31, 2024 at 12:19=E2=80=AFAM Paul Procacci <pprocacci@gmail.com= > wrote: > > > On Tue, Jan 30, 2024 at 10:33=E2=80=AFPM Paul Kagan <pkagan@videotron.ca>= wrote: > >> 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_unlock= ed >> >> 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, i= n >> <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, >> in <module> >> >> from cryptography.hazmat.bindings.openssl.binding import Binding >> >> File >> "/usr/local/lib/python3.9/site-packages/cryptography/hazmat/bindings/ope= nssl/binding.py", >> line 167, in <module> >> >> Binding.init_static_locks() >> >> File >> "/usr/local/lib/python3.9/site-packages/cryptography/hazmat/bindings/ope= nssl/binding.py", >> line 134, in init_static_locks >> >> cls._ensure_ffi_initialized() >> >> File >> "/usr/local/lib/python3.9/site-packages/cryptography/hazmat/bindings/ope= nssl/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/ope= nssl/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 ha= ve >> 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_unlock= ed >> >> 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, i= n >> <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, >> in <module> >> >> from cryptography.hazmat.bindings.openssl.binding import Binding >> >> File >> "/usr/local/lib/python3.9/site-packages/cryptography/hazmat/bindings/ope= nssl/binding.py", >> line 167, in <module> >> >> Binding.init_static_locks() >> >> File >> "/usr/local/lib/python3.9/site-packages/cryptography/hazmat/bindings/ope= nssl/binding.py", >> line 134, in init_static_locks >> >> cls._ensure_ffi_initialized() >> >> File >> "/usr/local/lib/python3.9/site-packages/cryptography/hazmat/bindings/ope= nssl/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/ope= nssl/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 ha= ve >> 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 chang= e? > > ~Paul > > -- > __________________ > > :(){ :|:& };: > Sorry, I quite literally just woke up. The default shell was changed to /bin/sh. ~Paul --=20 __________________ :(){ :|:& };: --00000000000028ade70610370c1d 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 Wed, Jan 31, 2024 at 12:19=E2= =80=AFAM Paul Procacci <<a href=3D"mailto:pprocacci@gmail.com">pprocacci= @gmail.com</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= -left:1ex"><div dir=3D"ltr"><div><div dir=3D"ltr"><br></div><br><div class= =3D"gmail_quote"><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" = target=3D"_blank">pkagan@videotron.ca</a>> wrote:<br></div><blockquote c= lass=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px soli= d rgb(204,204,204);padding-left:1ex"><div><div lang=3D"FR"><div><p class=3D= "MsoNormal">root@videotron:/usr/ports/security/openssl # @CRYPTOGRAPHY_OPEN= SSL_NO_LEGACY<u></u><u></u></p><p class=3D"MsoNormal">@CRYPTOGRAPHY_OPENSSL= _NO_LEGACY: Command not found.<u></u><u></u></p><p class=3D"MsoNormal">root= @videotron:/usr/ports/security/openssl # setenv CRYPTOGRAPHY_OPENSSL_NO_LEG= ACY=3Dyes ; certbot<u></u><u></u></p><p class=3D"MsoNormal">setenv: Variabl= e name must contain alphanumeric characters.<u></u><u></u></p><p class=3D"M= soNormal">Traceback (most recent call last):<u></u><u></u></p><p class=3D"M= soNormal">File "/usr/local/bin/certbot", line 33, in <module&g= t;<u></u><u></u></p><p class=3D"MsoNormal">sys.exit(load_entry_point('c= ertbot=3D=3D2.8.0', 'console_scripts', 'certbot')())<u>= </u><u></u></p><p class=3D"MsoNormal">File "/usr/local/bin/certbot&quo= t;, line 25, in importlib_load_entry_point<u></u><u></u></p><p class=3D"Mso= Normal">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 import_module(ma= tch.group('module'))<u></u><u></u></p><p class=3D"MsoNormal">File &= quot;/usr/local/lib/python3.9/importlib/__init__.py", line 127, in imp= ort_module<u></u><u></u></p><p class=3D"MsoNormal">return _bootstrap._gcd_i= mport(name[level:], package, level)<u></u><u></u></p><p class=3D"MsoNormal"= >File "<frozen importlib._bootstrap>", line 1030, in _gcd_i= mport<u></u><u></u></p><p class=3D"MsoNormal">File "<frozen importl= ib._bootstrap>", line 1007, in _find_and_load<u></u><u></u></p><p c= lass=3D"MsoNormal">File "<frozen importlib._bootstrap>", li= ne 986, in _find_and_load_unlocked<u></u><u></u></p><p class=3D"MsoNormal">= File "<frozen importlib._bootstrap>", line 680, in _load_un= locked<u></u><u></u></p><p class=3D"MsoNormal">File "<frozen import= lib._bootstrap_external>", line 850, in exec_module<u></u><u></u></= p><p class=3D"MsoNormal">File "<frozen importlib._bootstrap>&quo= t;, line 228, in _call_with_frames_removed<u></u><u></u></p><p class=3D"Mso= Normal">File "/usr/local/lib/python3.9/site-packages/certbot/main.py&q= uot;, line 6, in <module><u></u><u></u></p><p class=3D"MsoNormal">fro= m 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/_i= nternal/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"MsoNormal">from = josepy.json_util import (<u></u><u></u></p><p class=3D"MsoNormal">File &quo= t;/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 im= port crypto<u></u><u></u></p><p class=3D"MsoNormal">File "/usr/local/l= ib/python3.9/site-packages/OpenSSL/__init__.py", line 8, in <module= ><u></u><u></u></p><p class=3D"MsoNormal">from OpenSSL import SSL, crypt= o<u></u><u></u></p><p class=3D"MsoNormal">File "/usr/local/lib/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-packages/Op= enSSL/_util.py", line 6, in <module><u></u><u></u></p><p class= =3D"MsoNormal">from cryptography.hazmat.bindings.openssl.binding import Bin= ding<u></u><u></u></p><p class=3D"MsoNormal">File "/usr/local/lib/pyth= on3.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 "/us= r/local/lib/python3.9/site-packages/cryptography/hazmat/bindings/openssl/bi= nding.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"MsoN= ormal">File "/usr/local/lib/python3.9/site-packages/cryptography/hazma= t/bindings/openssl/binding.py", line 123, in _ensure_ffi_initialized<u= ></u><u></u></p><p class=3D"MsoNormal">_legacy_provider_error(cls._legacy_p= rovider_loaded)<u></u><u></u></p><p class=3D"MsoNormal">File "/usr/loc= al/lib/python3.9/site-packages/cryptography/hazmat/bindings/openssl/binding= .py", line 43, in _legacy_provider_error<u></u><u></u></p><p class=3D"= MsoNormal">raise RuntimeError(<u></u><u></u></p><p class=3D"MsoNormal">Runt= imeError: OpenSSL 3.0's legacy provider failed to load. This is a fatal= error by default, but cryptography supports running without legacy algorit= hms by setting the environment variable CRYPTOGRAPHY_OPENSSL_NO_LEGACY. If = you did not expect this error, you have likely made a mistake with your Ope= nSSL configuration.<u></u><u></u></p><p class=3D"MsoNormal">root@videotron:= /usr/ports/security/openssl # setenv CRYPTOGRAPHY_OPENSSL_NO_LEGACY=3Dyes ;= certbot<u></u><u></u></p><p class=3D"MsoNormal">setenv: Variable name must= contain alphanumeric characters.<u></u><u></u></p><p class=3D"MsoNormal">T= raceback (most recent call last):<u></u><u></u></p><p class=3D"MsoNormal">F= ile "/usr/local/bin/certbot", line 33, in <module><u></u><u= ></u></p><p class=3D"MsoNormal">sys.exit(load_entry_point('certbot=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"MsoNormal">r= eturn next(matches).load()<u></u><u></u></p><p class=3D"MsoNormal">File &qu= ot;/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 "/usr= /local/lib/python3.9/importlib/__init__.py", line 127, in import_modul= e<u></u><u></u></p><p class=3D"MsoNormal">return _bootstrap._gcd_import(nam= e[level:], package, level)<u></u><u></u></p><p class=3D"MsoNormal">File &qu= ot;<frozen importlib._bootstrap>", line 1030, in _gcd_import<u><= /u><u></u></p><p class=3D"MsoNormal">File "<frozen importlib._boots= trap>", line 1007, in _find_and_load<u></u><u></u></p><p class=3D"M= soNormal">File "<frozen importlib._bootstrap>", line 986, i= n _find_and_load_unlocked<u></u><u></u></p><p class=3D"MsoNormal">File &quo= t;<frozen importlib._bootstrap>", line 680, in _load_unlocked<u>= </u><u></u></p><p class=3D"MsoNormal">File "<frozen importlib._boot= strap_external>", line 850, in exec_module<u></u><u></u></p><p clas= s=3D"MsoNormal">File "<frozen importlib._bootstrap>", line = 228, in _call_with_frames_removed<u></u><u></u></p><p class=3D"MsoNormal">F= ile "/usr/local/lib/python3.9/site-packages/certbot/main.py", lin= e 6, in <module><u></u><u></u></p><p class=3D"MsoNormal">from certbot= ._internal import main as internal_main<u></u><u></u></p><p class=3D"MsoNor= mal">File "/usr/local/lib/python3.9/site-packages/certbot/_internal/ma= in.py", line 21, in <module><u></u><u></u></p><p class=3D"MsoNor= mal">import josepy as jose<u></u><u></u></p><p class=3D"MsoNormal">File &qu= ot;/usr/local/lib/python3.9/site-packages/josepy/__init__.py", line 40= , in <module><u></u><u></u></p><p class=3D"MsoNormal">from josepy.jso= n_util import (<u></u><u></u></p><p class=3D"MsoNormal">File "/usr/loc= al/lib/python3.9/site-packages/josepy/json_util.py", line 24, in <m= odule><u></u><u></u></p><p class=3D"MsoNormal">from OpenSSL import crypt= o<u></u><u></u></p><p class=3D"MsoNormal">File "/usr/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/lib/python3.9/site-pa= ckages/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-packages/OpenSSL/_u= til.py", line 6, in <module><u></u><u></u></p><p class=3D"MsoNor= mal">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 167, = in <module><u></u><u></u></p><p class=3D"MsoNormal">Binding.init_stat= ic_locks()<u></u><u></u></p><p class=3D"MsoNormal">File "/usr/local/li= b/python3.9/site-packages/cryptography/hazmat/bindings/openssl/binding.py&q= uot;, 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">Fil= e "/usr/local/lib/python3.9/site-packages/cryptography/hazmat/bindings= /openssl/binding.py", line 123, in _ensure_ffi_initialized<u></u><u></= u></p><p class=3D"MsoNormal">_legacy_provider_error(cls._legacy_provider_lo= aded)<u></u><u></u></p><p class=3D"MsoNormal">File "/usr/local/lib/pyt= hon3.9/site-packages/cryptography/hazmat/bindings/openssl/binding.py",= line 43, in _legacy_provider_error<u></u><u></u></p><p class=3D"MsoNormal"= >raise RuntimeError(<u></u><u></u></p><p class=3D"MsoNormal">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 set= ting the environment variable CRYPTOGRAPHY_OPENSSL_NO_LEGACY. If you did no= t expect this error, you have likely made a mistake with your OpenSSL confi= guration.<u></u><u></u></p><p class=3D"MsoNormal">root@videotron:/usr/ports= /security/openssl #<u></u><u></u></p></div></div></div></blockquote></div><= br clear=3D"all"></div>What is your shell?<br><div>setenv is a csh builtin.= </div><div>The default shell was changed to /bin/ss.=C2=A0 Did you account = for this change?<br><br></div><div>~Paul<br></div><br><div><span class=3D"g= mail_signature_prefix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signat= ure">__________________<br><br>:(){ :|:& };:</div></div></div> </blockquote></div><br clear=3D"all"></div><div>Sorry, I quite literally ju= st woke up.=C2=A0 The default shell was changed to /bin/sh.</div><div><br><= /div><div>~Paul<br></div><div><span class=3D"gmail_signature_prefix">-- </s= pan><br><div dir=3D"ltr" class=3D"gmail_signature">__________________<br><b= r>:(){ :|:& };:</div></div></div> --00000000000028ade70610370c1d--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFbbPugryaz=u4Y41aG6gKaPPEf427uV6a2ZSaowtW8E-OoG8w>