LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Send HTTP request signed using private key (http://www.linuxquestions.org/questions/linux-general-1/send-http-request-signed-using-private-key-904421/)

steven.c.banks 09-22-2011 09:18 AM

Send HTTP request signed using private key
 
Using my vendor's documentation, I am attempting to construct a URL which consists of numerous parameters, including:

token This is the encoded form of all the session parameters, plus the validTo parameter. For example, "cpAdminType=10& ......validTo=1134134", in alphabetic order of the parameters.
All parameter values must be URL-encoded before the signing.
The token is signed using SHA and is URL encoded.

I found a utility to perform the URL encoding.

My question - what is the Linux utility or command to sign the token using SHA? It does not say SHA1 vs SHA2.

Thanks in advance...

TB0ne 09-22-2011 10:18 AM

Quote:

Originally Posted by steven.c.banks (Post 4479140)
Using my vendor's documentation, I am attempting to construct a URL which consists of numerous parameters, including:

token This is the encoded form of all the session parameters, plus the validTo parameter. For example, "cpAdminType=10& ......validTo=1134134", in alphabetic order of the parameters.
All parameter values must be URL-encoded before the signing.
The token is signed using SHA and is URL encoded.

I found a utility to perform the URL encoding.

My question - what is the Linux utility or command to sign the token using SHA? It does not say SHA1 vs SHA2.

Thanks in advance...

Try shasum. There's also a sha1sum, but you can SHA1 and more with the shasum command...the man page can tell you more.


All times are GMT -5. The time now is 12:00 AM.