I am encountering a number of errors whenever I run the certbot
command. Errors are listed below. This just started happening recently after performing an upgrade. Any help or guidance on how to proceed would be greatly appreciated. The issue seems similar to this one but wanted to confirm before trying to recompile anything or mixing ports and packages on FreeBSD.
Thanks in advance!
My domain is: samirparikh.com
I ran this command: certbot --version
or certbot renew
It produced this output:
$ certbot --version
Traceback (most recent call last):
File "/usr/local/bin/certbot", line 11, in <module>
load_entry_point('certbot==0.39.0', 'console_scripts', 'certbot')()
File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 489, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2852, in load_entry_point
return ep.load()
File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2443, in load
return self.resolve()
File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2449, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/usr/local/lib/python3.6/site-packages/certbot/main.py", line 10, in <module>
import josepy as jose
File "/usr/local/lib/python3.6/site-packages/josepy/__init__.py", line 41, in <module>
from josepy.interfaces import JSONDeSerializable
File "/usr/local/lib/python3.6/site-packages/josepy/interfaces.py", line 7, in <module>
from josepy import errors, util
File "/usr/local/lib/python3.6/site-packages/josepy/util.py", line 7, in <module>
import OpenSSL
File "/usr/local/lib/python3.6/site-packages/OpenSSL/__init__.py", line 8, in <module>
from OpenSSL import crypto, SSL
File "/usr/local/lib/python3.6/site-packages/OpenSSL/crypto.py", line 12, in <module>
from cryptography import x509
File "/usr/local/lib/python3.6/site-packages/cryptography/x509/__init__.py", line 8, in <module>
from cryptography.x509.base import (
File "/usr/local/lib/python3.6/site-packages/cryptography/x509/base.py", line 16, in <module>
from cryptography.x509.extensions import Extension, ExtensionType
File "/usr/local/lib/python3.6/site-packages/cryptography/x509/extensions.py", line 18, in <module>
from cryptography.hazmat.primitives import constant_time, serialization
File "/usr/local/lib/python3.6/site-packages/cryptography/hazmat/primitives/constant_time.py", line 11, in <module>
from cryptography.hazmat.bindings._constant_time import lib
ImportError: Shared object "libffi.so.6" not found, required by "_cffi_backend.so"
My web server is (include version):
$ nginx -v
nginx version: nginx/1.18.0
The operating system my web server runs on is (include version):
$ uname -a
FreeBSD bozeman 12.1-RELEASE-p10 FreeBSD 12.1-RELEASE-p10 GENERIC amd64
My hosting provider, if applicable, is: Not applicable
I can login to a root shell on my machine (yes or no, or I don't know): Yes
I'm using a control panel to manage my site (no, or provide the name and version of the control panel): No
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot): Not sure as I can't run certbot --version
In addition, here is the output of the letsencrypt.log:
$ sudo more /var/log/letsencrypt/letsencrypt.log
2020-10-13 14:00:00,664:DEBUG:certbot.main:certbot version: 0.39.0
2020-10-13 14:00:00,665:DEBUG:certbot.main:Arguments: []
2020-10-13 14:00:00,665:DEBUG:certbot.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#manual,PluginEntryPoint#nginx,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
2020-10-13 14:00:00,688:DEBUG:certbot.log:Root logging level set at 20
2020-10-13 14:00:00,689:INFO:certbot.log:Saving debug log to /var/log/letsencrypt/letsencrypt.log
2020-10-13 14:00:00,717:DEBUG:certbot.plugins.selection:Requested authenticator <certbot.cli._Default object at 0x803766860> and installer <certbot.cli._Default object at 0x803766860>
2020-10-13 14:00:00,745:INFO:certbot.renewal:Cert not yet due for renewal
2020-10-13 14:00:00,746:DEBUG:certbot.plugins.selection:Requested authenticator nginx and installer nginx
2020-10-13 14:00:00,751:DEBUG:certbot.plugins.selection:Selecting plugin: * nginx
Description: Nginx Web Server plugin
Interfaces: IAuthenticator, IInstaller, IPlugin
Entry point: nginx = certbot_nginx.configurator:NginxConfigurator
Initialized: <certbot_nginx.configurator.NginxConfigurator object at 0x803753470>
2020-10-13 14:00:00,752:DEBUG:certbot.renewal:no renewal failures