Hi,

I try to generate the same signature than openssl_sign from the command line.
I use the following command:

openssl dgst -sha1 data_file | sed "s:.*\=\ ::" | openssl rsautl -inkey \
private_rsa.key  -sign -out sign_file

but the signatures are different :/

If I understand the PHP doku right, a SHA1 hash over the data is generated
followed by signing this hash.  

What's going wrong here?

mfg
Dietrich Heise
--
Open WebMail Project (http://openwebmail.org)

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to