Method I attempted for manual decryption is listed below:
openssl pkeyutl -derive -inkey mailcrypt.key -peerkey mailcrypt.pub -out shared_secret.bin
openssl enc -aes256 -base64 -k $(base64 shared_secret.bin) -d -in test.enc -out test.txt
Openssl reports an error reading the input file, but it isn't permissions related.
I started looking for the encryption/decryption method in the source but figure it's worth seeing if there's some existing methodology I can employ here.
Appreciate any feedback. Thanks,
--