Certbot Shared object "libffi.so.6" not found Errors After Recent FreeBSD Upgrade

Thanks for all of the comments and suggestions. I think I may have resolved this through some trial and error but will have to wait until my certificate is due for renewal to really know for sure.

@rg305: As griffin mentioned, I don't think snapd will be an option on FreeBSD as I believe that this would require systemd which I don't have.

@Osiris: Thank you for your reply but I already have the latest version of py-cffi and libffi.

What I ended up doing:

I uninstalled the version of security/py-certbot-nginx that I had and then ran

$ sudo pkg install py37-certbot # not sure I really need this
$ sudo pkg install py37-certbot-nginx

I can now run some certbot commands, for example:

$ certbot --version
certbot 1.8.0

as well as:

$ sudo certbot renew --dry-run
Saving debug log to /var/log/letsencrypt/letsencrypt.log

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing /usr/local/etc/letsencrypt/renewal/samirparikh.com.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Cert not due for renewal, but simulating renewal for dry run
Plugins selected: Authenticator nginx, Installer nginx
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for samirparikh.com
Waiting for verification...
Cleaning up challenges

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
new certificate deployed with reload of nginx server; fullchain is
/usr/local/etc/letsencrypt/live/samirparikh.com/fullchain.pem
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
** DRY RUN: simulating 'certbot renew' close to cert expiry
**          (The test certificates below have not been saved.)

Congratulations, all renewals succeeded. The following certs have been renewed:
  /usr/local/etc/letsencrypt/live/samirparikh.com/fullchain.pem (success)
** DRY RUN: simulating 'certbot renew' close to cert expiry
**          (The test certificates above have not been saved.)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Again, I won't know for sure whether this is the right permanent solution but I seem to be in a slightly better situation than I was 24 hours earlier.

Thanks again to the very helpful people in this great community for providing such a valuable service!

Samir

2 Likes