Signing a file using HMAC

2009-08-20 Thread toby . walsh
Hello, I am using the dgst command to sign a file, I'm also using the -hmac option. I then want to verify the signature by decrypting it and checking the hash. The problem is the hash never seems to match. For example, if i sign the string foo I get the hash below $ echo foo | openssl dgst

Re: Signing a file using HMAC

2009-08-20 Thread Michael Sierchio
toby.wa...@fxhome.com wrote: Hello, I am using the dgst command to sign a file, I'm also using the -hmac option. I then want to verify the signature by decrypting it and checking the hash. The problem is the hash never seems to match. It's unclear to me what you are trying to accomplish

Re: Signing a file

2005-08-31 Thread Dr. Stephen Henson
On Tue, Aug 30, 2005, Roberto Arias Alegria wrote: Hello Stephen, Thanks for helping me, I'm new using open-ssl I really appreciate your support. Then I used openssl asn1parse -inform DER -in file.key and I got this: 0:d=0 hl=4 l= 710 cons: SEQUENCE 4:d=1 hl=2 l= 64 cons:

Re: Signing a file

2005-08-31 Thread Roberto Arias Alegria
I want to be like you! Exactly, the file is in PKCS #8 format, that command worked perfectly, I entered my password and worked well. Now I want to sign a file. You said that I should use the the -sign option in the dgst command, right? Since I also need a md5 hash of my string I tried: openssl

RES: Signing a file

2005-08-31 Thread Cleidson
:[EMAIL PROTECTED] nome de Roberto Arias Alegria Enviada em: quarta-feira, 31 de agosto de 2005 11:33 Para: openssl-users@openssl.org Assunto: Re: Signing a file I want to be like you! Exactly, the file is in PKCS #8 format, that command worked perfectly, I entered my password and worked well. Now I

Re: Signing a file

2005-08-31 Thread Dr. Stephen Henson
On Wed, Aug 31, 2005, Roberto Arias Alegria wrote: I want to be like you! Exactly, the file is in PKCS #8 format, that command worked perfectly, I entered my password and worked well. Now I want to sign a file. You said that I should use the the -sign option in the dgst command, right?

Re: RES: Signing a file

2005-08-31 Thread Dr. Stephen Henson
On Wed, Aug 31, 2005, Cleidson wrote: Hi, I have the same problem with my private keys (I have a proprietary software that produce a private key, and I wanna use it in Openssl), but I used the command openssl asn1parse -inform DER -in file.key and I got this: 0:d=0 hl=4 l= 630 cons:

RES: RES: Signing a file

2005-08-31 Thread Cleidson
That command worked just fine. Thaks a lot. Cleidson Correia -Mensagem original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] nome de Dr. Stephen Henson Enviada em: quarta-feira, 31 de agosto de 2005 12:46 Para: openssl-users@openssl.org Assunto: Re: RES: Signing a file On Wed

Re: Signing a file

2005-08-31 Thread Roberto Arias Alegria
OK, perfectly, just what I needed. Let me try it with my real file I think I can do the rest of what I need for myself. Thanks again! Roberto On 8/31/05, Dr. Stephen Henson [EMAIL PROTECTED] wrote: On Wed, Aug 31, 2005, Roberto Arias Alegria wrote: I want to be like you! Exactly, the

Re: Signing a file

2005-08-31 Thread Roberto Arias Alegria
Me again, Reading further in the specifications, I found out that the software that builds the private and public keys is using PKCS #10, it is important that I used openssl pkcs8 -inform DER -in mykey.key -out mykey.pem to convert my private key? Just to know, it worked perfectly. Roberto

Re: Signing a file

2005-08-31 Thread Dr. Stephen Henson
On Wed, Aug 31, 2005, Roberto Arias Alegria wrote: Me again, Reading further in the specifications, I found out that the software that builds the private and public keys is using PKCS #10, it is important that I used openssl pkcs8 -inform DER -in mykey.key -out mykey.pem to convert my

Signing a file

2005-08-30 Thread Roberto Arias Alegria
Hello, I tried to sign a file using a private key (a file with a .key extension) using this: openssl rsautl -sign -in myfile.txt -inkey mykey.key -out signed But I got a meesage unable to load private key. The private key was generated using a propiertary software (in fact, a government-made

Re: Signing a file

2005-08-30 Thread Dr. Stephen Henson
On Tue, Aug 30, 2005, Roberto Arias Alegria wrote: Hello, I tried to sign a file using a private key (a file with a .key extension) using this: openssl rsautl -sign -in myfile.txt -inkey mykey.key -out signed But I got a meesage unable to load private key. The private key was

Re: Signing a file

2005-08-30 Thread Roberto Arias Alegria
Hello Stephen, Thanks for helping me, I'm new using open-ssl I really appreciate your support. OK firstly no, I didn't find the private-key string using the binary editor, I searched for it but I didn't find it. Thanks for the suggestion, I generated a dummy key with the same software. After

signing a file with openssl

2004-04-23 Thread gilles . lami
Hi, I am trying to sign a file with openssl : openssl rsautl -raw -sign -in coucou1.pdf -inkey gilles.pem -out sig Enter pass phrase for gilles.pem: RSA operation error 30452:error:0406B06E:rsa routines:RSA_padding_add_none:data too large for key size:rsa_none.c:70: I did not find anything

Re: signing a file with openssl

2004-04-23 Thread Dr. Stephen Henson
On Fri, Apr 23, 2004, [EMAIL PROTECTED] wrote: Hi, I am trying to sign a file with openssl : openssl rsautl -raw -sign -in coucou1.pdf -inkey gilles.pem -out sig Enter pass phrase for gilles.pem: RSA operation error 30452:error:0406B06E:rsa routines:RSA_padding_add_none:data too large

Réf. : Re: signing a file with openssl

2004-04-23 Thread LAMI, Gilles - DSIA
cc : Objet : Re: signing a file with openssl On Fri, Apr 23, 2004, [EMAIL PROTECTED] wrote: Hi, I am trying to sign a file with openssl