OpenSSL to create SHA1 hash

Anonymous
Not applicable

OpenSSL to create SHA1 hash

I am trying to find an application that I can run from the command line to create a SHA1 hash for authenticating the Mkto SOAP API.  I thought openSSL would be the ticket but the result I am getting does not match what I get from quickhash.com or Marketo - API Header Generator and the result is an authentication failure.

The syntax I'm using is as follows:   @echo "dataToHash" | openssl dgst -SHA1 -hmac "encryptionString"  > myResultsFile

Does anyone know if openSSL actually works?  If so, what am I missing in the syntax.  And if not, can anyone recommend a utility that I can download and run on my computer.   I'm trying to create an automated process running from an OpenEdge program.

Thanks,

Wes

3 REPLIES 3
SanfordWhiteman
Level 10 - Community Moderator

Re: OpenSSL to create SHA1 hash

I assume you're not actually including the quotes?

Anonymous
Not applicable

Re: OpenSSL to create SHA1 hash

No I am not including the quotes. Although when it failed several times without the quotes I did try it with the quote just to be sure it wasn’t that.

…Wes

SanfordWhiteman
Level 10 - Community Moderator

Re: OpenSSL to create SHA1 hash

I won't be by a machine where I can check this until much later, but the first thing that occurred to me is you def'ly don't want the quotes.