#! /bin/bash -x openssl smime -decrypt -binary -in encrypted.zip.enc -inform DER -out decrypted.txt -inkey ca.key -passin pass:your_password