Re: certbot

From: John Levine <johnl_at_iecc.com>
Date: Sat, 20 Apr 2024 15:34:31 UTC
It appears that Gerard E. Seibert <jerry@seibercom.net, questions@freebsd.org> said:
>If I run the command from the command line, it works as expected. I did
>place the following in the environment: CRYPTOGRAPHY_OPENSSL_NO_LEGACY=1

>I still do not understand why this error only happens from CRON.

Most likely because that variable is not there. Cron uses a standard
rather sparse environment.  See "man 5 crontab".

In this case rather than messing with the script, just set the
variable on the command line in the crontab, e.g.

0 1 * * * CRYPTOGRAPHY_OPENSSL_NO_LEGACY=1 certbot ...

R's,
John