Hey all,
Is it possible to use openssl dgst to generate and verify digests in hex
format? I've been trying it for some time, and I can't figure it out.
I can generate the digest in hex format without any problem, but I can't
get it to verify (syntax examples below).
Generate the digest:
lbrown@dsss:~$ openssl dgst -hex -sha512 -sign
/opt/dsss/keys/rsa.key.2048 -out /tmp/tmp_sig
/opt/dsss/datafiles/WRave2gif.c
Verify:
lbrown@dsss:~$ openssl dgst -hex -sha512 -verify
/opt/dsss/keys/rsa.key.2048.pub -signature /tmp/tmp_sig
/opt/dsss/datafiles/WRave2gif.c
Verification Failure
or:
lbrown@dsss:~$ openssl dgst -sha512 -verify
/opt/dsss/keys/rsa.key.2048.pub -signature /tmp/tmp_sig
/opt/dsss/datafiles/WRave2gif.c
Verification Failure
The similar syntax works if I leave out the '-hex' all the time, meaning
binary digests. However, it's going to be a little difficult to use
binary digests for my application.
Any ideas?
Thanks,
Lloyd Brown
______________________________________________________________________
OpenSSL Project
http://www.openssl.orgUser Support Mailing List
[hidden email]
Automated List Manager
[hidden email]