OpenSSL to create SHA1 hash | Community
Skip to main content
November 24, 2015
Question

OpenSSL to create SHA1 hash

  • November 24, 2015
  • 1 reply
  • 1704 views

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-2 "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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

SanfordWhiteman
Level 10
November 24, 2015

I assume you're not actually including the quotes?

November 24, 2015

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
November 24, 2015

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.