Currently, there is no batch mode for the expire subcommand.
$ easyrsa expire httpd.local
Using Easy-RSA 'vars' configuration:
* /Users/dev/.local/secrets/easyrsa/pki/vars
Please confirm you wish to expire the certificate
with the following subject:
subject=
commonName = httpd.local
serial-number = BFEBE5C55A788AFF503DCAF8561178C0
notAfter date = Aug 11 11:15:43 2024 GMT
Type the word 'yes' to continue, or any other input to abort.
Continue with expiry:
Currently, there is no batch mode for the expire subcommand.
Something along the lines:
or