Passphrases and automation .. it is a conundrum.
However, it would be useful if EasyRSA had some documentation on how it is done here ..
Options: --passin=something and --passout=something.
FTR: https://www.openssl.org/docs/man3.0/man1/openssl-passphrase-options.html