Scott Chapman wrote:
> I need to dynamically encrypt buttons for my web site's interaction with
> PayPal, similar to this example of how to do it from the shell prompt
> using OpenSSL:
> http://paypaltech.com/Dave/api_sourcebook/html/ewp/ewpshell.html
>
> 1) Will pyOpenSSL do this?
>
> 2) Any pointers on where to start/how to do this with pyOpenSSL would be
> very helpful. I'm new to encryption. I can generate the certificates
> Ok so far (using OpenSSL at the command line, not Python :( ). I don't
> find any examples on how to use pyOpenSSL in the docs, just a bare
> rundown on the objects. Did I miss something? I'm rather lost here
> trying to figure out what all to use.
More specifically, I need to emulate this openssl command:
openssl smime -sign -in $tempfile -signer $MY_CERT -inkey $MY_KEY
-outform der -nodetach -binary | \
openssl smime -encrypt -des3 -binary -outform pem
/root/sandbox_cert_key_pem.txt
I am completely at a loss to deal with the pyOpenSSL library and really
need a lift here if anyone can help me out.
TIA,
Scott
|