Re: [PHP] openssl_sign() & openssl_verify() discrepancy

2012-05-24 Thread jas
On 05/23/2012 02:00 PM, Matijn Woudt wrote: On Wed, May 23, 2012 at 9:42 PM, Jason Gerfen wrote: On 05/23/2012 01:26 PM, Matijn Woudt wrote: On Wed, May 23, 2012 at 9:12 PM, Jason Gerfen wrote: On 05/23/2012 01:05 PM, Matijn Woudt wrote: On Wed, May 23, 2012 at 8:29 PM, jas wrote:

Re: [PHP] openssl_sign() & openssl_verify() discrepancy

2012-05-23 Thread Matijn Woudt
On Wed, May 23, 2012 at 9:42 PM, Jason Gerfen wrote: > On 05/23/2012 01:26 PM, Matijn Woudt wrote: >> >> On Wed, May 23, 2012 at 9:12 PM, Jason Gerfen >>  wrote: >>> >>> On 05/23/2012 01:05 PM, Matijn Woudt wrote: On Wed, May 23, 2012 at 8:29 PM, jas    wrote: > > I have run into

Re: [PHP] openssl_sign() & openssl_verify() discrepancy

2012-05-23 Thread Jason Gerfen
On 05/23/2012 01:26 PM, Matijn Woudt wrote: On Wed, May 23, 2012 at 9:12 PM, Jason Gerfen wrote: On 05/23/2012 01:05 PM, Matijn Woudt wrote: On Wed, May 23, 2012 at 8:29 PM, jaswrote: I have run into a problem that I am altogether unfamiliar with. A scenario. I retrieve a users private k

Re: [PHP] openssl_sign() & openssl_verify() discrepancy

2012-05-23 Thread Matijn Woudt
On Wed, May 23, 2012 at 9:12 PM, Jason Gerfen wrote: > On 05/23/2012 01:05 PM, Matijn Woudt wrote: >> >> On Wed, May 23, 2012 at 8:29 PM, jas  wrote: >>> >>> I have run into a problem that I am altogether unfamiliar with. >>> >>> A scenario. I retrieve a users private key from a database. >>> >>>

Re: [PHP] openssl_sign() & openssl_verify() discrepancy

2012-05-23 Thread Jason Gerfen
On 05/23/2012 01:05 PM, Matijn Woudt wrote: On Wed, May 23, 2012 at 8:29 PM, jas wrote: I have run into a problem that I am altogether unfamiliar with. A scenario. I retrieve a users private key from a database. I then use the openssl_pkey_get_private() function to load it as a resource objec

Re: [PHP] openssl_sign() & openssl_verify() discrepancy

2012-05-23 Thread Matijn Woudt
On Wed, May 23, 2012 at 8:29 PM, jas wrote: > I have run into a problem that I am altogether unfamiliar with. > > A scenario. I retrieve a users private key from a database. > > I then use the openssl_pkey_get_private() function to load it as a resource > object and proceed to call the openssl_sig

[PHP] openssl_sign() & openssl_verify() discrepancy

2012-05-23 Thread jas
I have run into a problem that I am altogether unfamiliar with. A scenario. I retrieve a users private key from a database. I then use the openssl_pkey_get_private() function to load it as a resource object and proceed to call the openssl_sign() function to obtain a digital signature of a stri

[PHP] openssl_sign

2003-12-01 Thread Dietrich Heise
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,

[PHP] openssl_sign and openssl_verify

2003-11-28 Thread Dietrich Heise
Hi, is there a way to create the same signature with openssl from the command line? Also I need to verify a php gererated signature at the command line. Background: Two servers, one php is compiled with --with-openssl and the other not :/ thanks Dietrich -- PHP General Mailing List (http://www