Hello,
> I have following questions regarding digest creation using openssl.
> Would really appreciate if someone could please reply? We are using
> OpenSSL 0.9.7a Feb 19 2003.
>      1. openssl dgst -sha1 xyz.tar.gz or openssl dgst –md5 xyz.tar.gz
>         creates a digest for xyz.tar.gz file. Can openssl create and
>         verify a digest for a directory instead of a file? If so, what
>         is the command?
Directly not, you may test something like that:

  $ tar cf - /tmp | openssl dgst -sha1
  ff8beb2170120e125604cba279a6e616dbc603e9

>      1. openssl can create a md5, sha1 digest for a given file. Can
>         openssl create sha2 digest? Man page suggests dgst can take
>         sha256 or sha512 as argument but when I use this, it complains
>         as an invalid option for argument.
You must have 0.9.8 or above to have sha256/sha512

Best regards,
-- 
Marek Marcola <[EMAIL PROTECTED]>

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

Reply via email to