Try using GPG to encrypt the file instead of open ssl.