Compiled latest version 0.9.8a but still can't get sha-256 hash working

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Compiled latest version 0.9.8a but still can't get sha-256 hash working

cayblood
Can somebody please explain to me how to compile openssl with sha-256 support?  I have built the latest version from source but still can't seem to find a way to get it working.

Thanks,
Carl
Reply | Threaded
Open this post in threaded view
|

Re: Compiled latest version 0.9.8a but still can't get sha-256 hash working

Brian Candler
On Wed, Mar 01, 2006 at 12:01:52PM -0800, Carl Youngblood wrote:
>    Can somebody please explain to me how to compile openssl with sha-256
>    support?  I have built the latest version from source but still can't
>    seem to find a way to get it working.

How *exactly* did you compile from source, under what OS, and what *exact*
test did you do that shows it's not working?

Here,

$ echo -n "abc" | /usr/linnet/0.HEAD/bin/openssl dgst -sha256
ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad
$ /usr/linnet/0.HEAD/bin/openssl version
OpenSSL 0.9.8a 11 Oct 2005
$

This is under FreeBSD 5.4. openssl was compiled from source using more or
less default settings. More precisely,

  LD_RUN_PATH=/usr/linnet/0.HEAD/lib; export LD_RUN_PATH
  ./config --prefix=/usr/linnet/0.HEAD --openssldir=/etc/linnet/0.HEAD/openssl no-idea shared
  make
  make test
  sudo make install

Note the LD_RUN_PATH. This ensures that the 'openssl' binary knows where to
find the correct openssl libraries, and doesn't end up picking up some
random libssl.so.* found elsewhere on the system.

Regards,

Brian.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [hidden email]
Automated List Manager                           [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: Compiled latest version 0.9.8a but still can't get sha-256 hash working

cayblood
My bad.  I typed 'openssl help' and didn't see sha256 listed under any of the digest commands.  That is probably an old menu that hasn't been updated yet.  Now that I used your syntax I got the same result.  Thanks for the help!

On 3/1/06, Brian Candler <[hidden email]> wrote:
On Wed, Mar 01, 2006 at 12:01:52PM -0800, Carl Youngblood wrote:
>    Can somebody please explain to me how to compile openssl with sha-256
>    support?  I have built the latest version from source but still can't
>    seem to find a way to get it working.

How *exactly* did you compile from source, under what OS, and what *exact*
test did you do that shows it's not working?

Here,

$ echo -n "abc" | /usr/linnet/0.HEAD/bin/openssl dgst -sha256
ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad
$ /usr/linnet/0.HEAD/bin/openssl version
OpenSSL 0.9.8a 11 Oct 2005
$

This is under FreeBSD 5.4. openssl was compiled from source using more or
less default settings. More precisely,

  LD_RUN_PATH=/usr/linnet/0.HEAD/lib; export LD_RUN_PATH
  ./config --prefix=/usr/linnet/0.HEAD --openssldir=/etc/linnet/0.HEAD/openssl no-idea shared
  make
  make test
  sudo make install

Note the LD_RUN_PATH. This ensures that the 'openssl' binary knows where to
find the correct openssl libraries, and doesn't end up picking up some
random libssl.so.* found elsewhere on the system.

Regards,

Brian.