Hello all,

I'm struggling to get some openssl elliptic curve based file digest/digital sig work done. I'm able to generate both ec and rsa keys without a problem, and am trying to digest a file using the "openssl dgst" command. However, I get something like this:

[EMAIL PROTECTED]:~$ openssl dgst -sha512 -sign ec.key.prime192v2.pem -hex -out ec.test.sig.hex.sha512 file_to_digest
Error Signing Data
10917:error:0606B06E:digital envelope routines:EVP_SignFinal:wrong public key type:p_sign.c:103:
[EMAIL PROTECTED]:~$

The exact same syntax when used with an RSA key works fine. What am I doing wrong? Am I missing something completely obvious?

FYI:
My system:
Dell PowerEdge 1855
-Dual Intel Xeon EM64T, 3.6 GHz processors
-4 GB RAM
-Debian Sarge Linux
   -kernel: Debian stock "2.6.8-11-amd64-generic"
   -OpenSSL 0.9.8a


Thanks,
Lloyd Brown

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to