On 2006.10.12 at 18:44:20 -0400, William Triplett wrote: > Dear openssl-users, > > Suppose that I have the Sealed Data, Envelope, and proper Private Key > for some data encrypted with EVP_Seal* using RC4 (basically, PHP's > openssl_seal() function). Is there a way to decrypt it using the > command-line openssl tools?
I think that you should look to openssl smime command. EVP_Seal* is public key encryption which generate random session key, encrypts it with private key and envelopes into some ASN1 structure. try openssl smime -decrypt -in envelope -inform PEM -content sealed You might have to add proper PEM header and footer to envelope. Or decode base64 separately and use DER format. You also have to base64 decode sealed data before feeding to decryption routine. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [email protected] Automated List Manager [EMAIL PROTECTED]
