Discussion:
openssl and SHA256
(too old to reply)
Scott Wilson
2012-01-18 19:47:46 UTC
Permalink
Does openssl support SHA256?

Current version: OpenSSL 1.0.0e 6 Sep 2011

This would indicate that it does not:
***@ubuntu:/# openssl list-message-digest-commands
md4
md5
rmd160
sha
sha1

This document (http://www.openssl.org/docs/apps/openssl.html) however lists it as a
MESSAGE DIGEST COMMAND
sha256

SHA-256 Digest

If SHA256 is supported, how do I get it to work? Thanks!!
Wim Lewis
2012-01-18 20:03:38 UTC
Permalink
Post by Scott Wilson
Does openssl support SHA256?
Yes, it does. I'm not sure why it doesn't show up in the output of "list-message-digest-commands" or the usage message, but "openssl sha256" will compute a SHA256 digest, and "openssl dgst --help" lists it.


______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openssl-***@openssl.org
Automated List Manager ***@openssl.org
Scott Wilson
2012-01-19 01:39:06 UTC
Permalink
Excellent, thanks. Do you know how many versions back SHA256 is supported? The reason I ask is that I've got an older version running on a Ubuntu VM (OpenSSL 0.9.8o 01 Jun 2010), and I tried to generate a CA cert using SHA256 but it signed with SHA1. Here's the command I used in the script: default_md = sha256. Anyway, I'm just wondering which version began supporting SHA256 or what's wrong with my command such that it signs with SHA1? Thanks again!
Subject: Re: openssl and SHA256
Date: Wed, 18 Jan 2012 12:03:38 -0800
Post by Scott Wilson
Does openssl support SHA256?
Yes, it does. I'm not sure why it doesn't show up in the output of "list-message-digest-commands" or the usage message, but "openssl sha256" will compute a SHA256 digest, and "openssl dgst --help" lists it.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Kenneth Goldman
2012-01-18 20:28:17 UTC
Permalink
Date: 01/18/2012 01:52 PM
Does openssl support SHA256?
Yes
If SHA256 is supported, how do I get it to work? Thanks!!
SHA256_Init/Update/Final()
Jakob Bohm
2012-01-19 09:26:45 UTC
Permalink
Post by Scott Wilson
Excellent, thanks. Do you know how many versions back SHA256 is
supported? The reason I ask is that I've got an older version running
on a Ubuntu VM (OpenSSL 0.9.8o 01 Jun 2010), and I tried to generate a
CA cert using SHA256 but it signed with SHA1. Here's the command I
used in the script: default_md = sha256. Anyway, I'm just wondering
which version began supporting SHA256 or what's wrong with my command
such that it signs with SHA1? Thanks again!
I am quite sure that SHA256 was in 0.9.8 too, but I don't know how much
further back it was there.
Post by Scott Wilson
Subject: Re: openssl and SHA256
Date: Wed, 18 Jan 2012 12:03:38 -0800
Post by Scott Wilson
Does openssl support SHA256?
Yes, it does. I'm not sure why it doesn't show up in the output of
"list-message-digest-commands" or the usage message, but "openssl
sha256" will compute a SHA256 digest, and "openssl dgst --help" lists it.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openssl-***@openssl.org
Automated List Manager ***@openssl.org
Loading...