Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Jan 2024 22:32:35 -0500
From:      "Paul Kagan" <pkagan@videotron.ca>
To:        <questions@freebsd.org>
Subject:   certbot does not work
Message-ID:  <00c501da53f6$222d8640$668892c0$@videotron.ca>

next in thread | raw e-mail | index | archive | help
This is a multipart message in MIME format.

------=_NextPart_000_00C6_01DA53CC.39581A80
Content-Type: text/plain;
	charset="US-ASCII"
Content-Transfer-Encoding: 7bit

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=yes ; 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==2.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 = 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_unlocked

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, in
<module>

from cryptography.hazmat.bindings.openssl.binding import Binding

File
"/usr/local/lib/python3.9/site-packages/cryptography/hazmat/bindings/openssl
/binding.py", line 167, in <module>

Binding.init_static_locks()

File
"/usr/local/lib/python3.9/site-packages/cryptography/hazmat/bindings/openssl
/binding.py", line 134, in init_static_locks

cls._ensure_ffi_initialized()

File
"/usr/local/lib/python3.9/site-packages/cryptography/hazmat/bindings/openssl
/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/openssl
/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 have
likely made a mistake with your OpenSSL configuration.

root@videotron:/usr/ports/security/openssl # setenv
CRYPTOGRAPHY_OPENSSL_NO_LEGACY=yes ; 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==2.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 = 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_unlocked

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, in
<module>

from cryptography.hazmat.bindings.openssl.binding import Binding

File
"/usr/local/lib/python3.9/site-packages/cryptography/hazmat/bindings/openssl
/binding.py", line 167, in <module>

Binding.init_static_locks()

File
"/usr/local/lib/python3.9/site-packages/cryptography/hazmat/bindings/openssl
/binding.py", line 134, in init_static_locks

cls._ensure_ffi_initialized()

File
"/usr/local/lib/python3.9/site-packages/cryptography/hazmat/bindings/openssl
/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/openssl
/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 have
likely made a mistake with your OpenSSL configuration.

root@videotron:/usr/ports/security/openssl #


------=_NextPart_000_00C6_01DA53CC.39581A80
Content-Type: text/html;
	charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40"><head><META =
HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii"><meta name=3DGenerator content=3D"Microsoft Word 15 =
(filtered medium)"><style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;
	mso-ligatures:standardcontextual;
	mso-fareast-language:EN-US;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Calibri",sans-serif;
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri",sans-serif;
	mso-fareast-language:EN-US;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3DFR =
link=3D"#0563C1" vlink=3D"#954F72" style=3D'word-wrap:break-word'><div =
class=3DWordSection1><p =
class=3DMsoNormal>root@videotron:/usr/ports/security/openssl # =
@CRYPTOGRAPHY_OPENSSL_NO_LEGACY<o:p></o:p></p><p =
class=3DMsoNormal>@CRYPTOGRAPHY_OPENSSL_NO_LEGACY: Command not =
found.<o:p></o:p></p><p =
class=3DMsoNormal>root@videotron:/usr/ports/security/openssl # setenv =
CRYPTOGRAPHY_OPENSSL_NO_LEGACY=3Dyes ; certbot<o:p></o:p></p><p =
class=3DMsoNormal>setenv: Variable name must contain alphanumeric =
characters.<o:p></o:p></p><p class=3DMsoNormal>Traceback (most recent =
call last):<o:p></o:p></p><p class=3DMsoNormal>File =
&quot;/usr/local/bin/certbot&quot;, line 33, in =
&lt;module&gt;<o:p></o:p></p><p =
class=3DMsoNormal>sys.exit(load_entry_point('certbot=3D=3D2.8.0', =
'console_scripts', 'certbot')())<o:p></o:p></p><p class=3DMsoNormal>File =
&quot;/usr/local/bin/certbot&quot;, line 25, in =
importlib_load_entry_point<o:p></o:p></p><p class=3DMsoNormal>return =
next(matches).load()<o:p></o:p></p><p class=3DMsoNormal>File =
&quot;/usr/local/lib/python3.9/importlib/metadata.py&quot;, line 86, in =
load<o:p></o:p></p><p class=3DMsoNormal>module =3D =
import_module(match.group('module'))<o:p></o:p></p><p =
class=3DMsoNormal>File =
&quot;/usr/local/lib/python3.9/importlib/__init__.py&quot;, line 127, in =
import_module<o:p></o:p></p><p class=3DMsoNormal>return =
_bootstrap._gcd_import(name[level:], package, level)<o:p></o:p></p><p =
class=3DMsoNormal>File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, =
line 1030, in _gcd_import<o:p></o:p></p><p class=3DMsoNormal>File =
&quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 1007, in =
_find_and_load<o:p></o:p></p><p class=3DMsoNormal>File &quot;&lt;frozen =
importlib._bootstrap&gt;&quot;, line 986, in =
_find_and_load_unlocked<o:p></o:p></p><p class=3DMsoNormal>File =
&quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 680, in =
_load_unlocked<o:p></o:p></p><p class=3DMsoNormal>File &quot;&lt;frozen =
importlib._bootstrap_external&gt;&quot;, line 850, in =
exec_module<o:p></o:p></p><p class=3DMsoNormal>File &quot;&lt;frozen =
importlib._bootstrap&gt;&quot;, line 228, in =
_call_with_frames_removed<o:p></o:p></p><p class=3DMsoNormal>File =
&quot;/usr/local/lib/python3.9/site-packages/certbot/main.py&quot;, line =
6, in &lt;module&gt;<o:p></o:p></p><p class=3DMsoNormal>from =
certbot._internal import main as internal_main<o:p></o:p></p><p =
class=3DMsoNormal>File =
&quot;/usr/local/lib/python3.9/site-packages/certbot/_internal/main.py&qu=
ot;, line 21, in &lt;module&gt;<o:p></o:p></p><p =
class=3DMsoNormal>import josepy as jose<o:p></o:p></p><p =
class=3DMsoNormal>File =
&quot;/usr/local/lib/python3.9/site-packages/josepy/__init__.py&quot;, =
line 40, in &lt;module&gt;<o:p></o:p></p><p class=3DMsoNormal>from =
josepy.json_util import (<o:p></o:p></p><p class=3DMsoNormal>File =
&quot;/usr/local/lib/python3.9/site-packages/josepy/json_util.py&quot;, =
line 24, in &lt;module&gt;<o:p></o:p></p><p class=3DMsoNormal>from =
OpenSSL import crypto<o:p></o:p></p><p class=3DMsoNormal>File =
&quot;/usr/local/lib/python3.9/site-packages/OpenSSL/__init__.py&quot;, =
line 8, in &lt;module&gt;<o:p></o:p></p><p class=3DMsoNormal>from =
OpenSSL import SSL, crypto<o:p></o:p></p><p class=3DMsoNormal>File =
&quot;/usr/local/lib/python3.9/site-packages/OpenSSL/SSL.py&quot;, line =
9, in &lt;module&gt;<o:p></o:p></p><p class=3DMsoNormal>from =
OpenSSL._util import (<o:p></o:p></p><p class=3DMsoNormal>File =
&quot;/usr/local/lib/python3.9/site-packages/OpenSSL/_util.py&quot;, =
line 6, in &lt;module&gt;<o:p></o:p></p><p class=3DMsoNormal>from =
cryptography.hazmat.bindings.openssl.binding import =
Binding<o:p></o:p></p><p class=3DMsoNormal>File =
&quot;/usr/local/lib/python3.9/site-packages/cryptography/hazmat/bindings=
/openssl/binding.py&quot;, line 167, in &lt;module&gt;<o:p></o:p></p><p =
class=3DMsoNormal>Binding.init_static_locks()<o:p></o:p></p><p =
class=3DMsoNormal>File =
&quot;/usr/local/lib/python3.9/site-packages/cryptography/hazmat/bindings=
/openssl/binding.py&quot;, line 134, in =
init_static_locks<o:p></o:p></p><p =
class=3DMsoNormal>cls._ensure_ffi_initialized()<o:p></o:p></p><p =
class=3DMsoNormal>File =
&quot;/usr/local/lib/python3.9/site-packages/cryptography/hazmat/bindings=
/openssl/binding.py&quot;, line 123, in =
_ensure_ffi_initialized<o:p></o:p></p><p =
class=3DMsoNormal>_legacy_provider_error(cls._legacy_provider_loaded)<o:p=
></o:p></p><p class=3DMsoNormal>File =
&quot;/usr/local/lib/python3.9/site-packages/cryptography/hazmat/bindings=
/openssl/binding.py&quot;, line 43, in =
_legacy_provider_error<o:p></o:p></p><p class=3DMsoNormal>raise =
RuntimeError(<o:p></o:p></p><p class=3DMsoNormal>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 have likely made a mistake with your OpenSSL =
configuration.<o:p></o:p></p><p =
class=3DMsoNormal>root@videotron:/usr/ports/security/openssl # setenv =
CRYPTOGRAPHY_OPENSSL_NO_LEGACY=3Dyes ; certbot<o:p></o:p></p><p =
class=3DMsoNormal>setenv: Variable name must contain alphanumeric =
characters.<o:p></o:p></p><p class=3DMsoNormal>Traceback (most recent =
call last):<o:p></o:p></p><p class=3DMsoNormal>File =
&quot;/usr/local/bin/certbot&quot;, line 33, in =
&lt;module&gt;<o:p></o:p></p><p =
class=3DMsoNormal>sys.exit(load_entry_point('certbot=3D=3D2.8.0', =
'console_scripts', 'certbot')())<o:p></o:p></p><p class=3DMsoNormal>File =
&quot;/usr/local/bin/certbot&quot;, line 25, in =
importlib_load_entry_point<o:p></o:p></p><p class=3DMsoNormal>return =
next(matches).load()<o:p></o:p></p><p class=3DMsoNormal>File =
&quot;/usr/local/lib/python3.9/importlib/metadata.py&quot;, line 86, in =
load<o:p></o:p></p><p class=3DMsoNormal>module =3D =
import_module(match.group('module'))<o:p></o:p></p><p =
class=3DMsoNormal>File =
&quot;/usr/local/lib/python3.9/importlib/__init__.py&quot;, line 127, in =
import_module<o:p></o:p></p><p class=3DMsoNormal>return =
_bootstrap._gcd_import(name[level:], package, level)<o:p></o:p></p><p =
class=3DMsoNormal>File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, =
line 1030, in _gcd_import<o:p></o:p></p><p class=3DMsoNormal>File =
&quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 1007, in =
_find_and_load<o:p></o:p></p><p class=3DMsoNormal>File &quot;&lt;frozen =
importlib._bootstrap&gt;&quot;, line 986, in =
_find_and_load_unlocked<o:p></o:p></p><p class=3DMsoNormal>File =
&quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 680, in =
_load_unlocked<o:p></o:p></p><p class=3DMsoNormal>File &quot;&lt;frozen =
importlib._bootstrap_external&gt;&quot;, line 850, in =
exec_module<o:p></o:p></p><p class=3DMsoNormal>File &quot;&lt;frozen =
importlib._bootstrap&gt;&quot;, line 228, in =
_call_with_frames_removed<o:p></o:p></p><p class=3DMsoNormal>File =
&quot;/usr/local/lib/python3.9/site-packages/certbot/main.py&quot;, line =
6, in &lt;module&gt;<o:p></o:p></p><p class=3DMsoNormal>from =
certbot._internal import main as internal_main<o:p></o:p></p><p =
class=3DMsoNormal>File =
&quot;/usr/local/lib/python3.9/site-packages/certbot/_internal/main.py&qu=
ot;, line 21, in &lt;module&gt;<o:p></o:p></p><p =
class=3DMsoNormal>import josepy as jose<o:p></o:p></p><p =
class=3DMsoNormal>File =
&quot;/usr/local/lib/python3.9/site-packages/josepy/__init__.py&quot;, =
line 40, in &lt;module&gt;<o:p></o:p></p><p class=3DMsoNormal>from =
josepy.json_util import (<o:p></o:p></p><p class=3DMsoNormal>File =
&quot;/usr/local/lib/python3.9/site-packages/josepy/json_util.py&quot;, =
line 24, in &lt;module&gt;<o:p></o:p></p><p class=3DMsoNormal>from =
OpenSSL import crypto<o:p></o:p></p><p class=3DMsoNormal>File =
&quot;/usr/local/lib/python3.9/site-packages/OpenSSL/__init__.py&quot;, =
line 8, in &lt;module&gt;<o:p></o:p></p><p class=3DMsoNormal>from =
OpenSSL import SSL, crypto<o:p></o:p></p><p class=3DMsoNormal>File =
&quot;/usr/local/lib/python3.9/site-packages/OpenSSL/SSL.py&quot;, line =
9, in &lt;module&gt;<o:p></o:p></p><p class=3DMsoNormal>from =
OpenSSL._util import (<o:p></o:p></p><p class=3DMsoNormal>File =
&quot;/usr/local/lib/python3.9/site-packages/OpenSSL/_util.py&quot;, =
line 6, in &lt;module&gt;<o:p></o:p></p><p class=3DMsoNormal>from =
cryptography.hazmat.bindings.openssl.binding import =
Binding<o:p></o:p></p><p class=3DMsoNormal>File =
&quot;/usr/local/lib/python3.9/site-packages/cryptography/hazmat/bindings=
/openssl/binding.py&quot;, line 167, in &lt;module&gt;<o:p></o:p></p><p =
class=3DMsoNormal>Binding.init_static_locks()<o:p></o:p></p><p =
class=3DMsoNormal>File =
&quot;/usr/local/lib/python3.9/site-packages/cryptography/hazmat/bindings=
/openssl/binding.py&quot;, line 134, in =
init_static_locks<o:p></o:p></p><p =
class=3DMsoNormal>cls._ensure_ffi_initialized()<o:p></o:p></p><p =
class=3DMsoNormal>File =
&quot;/usr/local/lib/python3.9/site-packages/cryptography/hazmat/bindings=
/openssl/binding.py&quot;, line 123, in =
_ensure_ffi_initialized<o:p></o:p></p><p =
class=3DMsoNormal>_legacy_provider_error(cls._legacy_provider_loaded)<o:p=
></o:p></p><p class=3DMsoNormal>File =
&quot;/usr/local/lib/python3.9/site-packages/cryptography/hazmat/bindings=
/openssl/binding.py&quot;, line 43, in =
_legacy_provider_error<o:p></o:p></p><p class=3DMsoNormal>raise =
RuntimeError(<o:p></o:p></p><p class=3DMsoNormal>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 have likely made a mistake with your OpenSSL =
configuration.<o:p></o:p></p><p =
class=3DMsoNormal>root@videotron:/usr/ports/security/openssl =
#<o:p></o:p></p></div></body></html>
------=_NextPart_000_00C6_01DA53CC.39581A80--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00c501da53f6$222d8640$668892c0$>