LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 09-22-2011, 08:18 AM   #1
steven.c.banks
Member
 
Registered: Dec 2007
Location: Virginia
Distribution: RHEL
Posts: 44
Blog Entries: 1

Rep: Reputation: 15
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...
 
Old 09-22-2011, 09:18 AM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,759

Rep: Reputation: 2612Reputation: 2612Reputation: 2612Reputation: 2612Reputation: 2612Reputation: 2612Reputation: 2612Reputation: 2612Reputation: 2612Reputation: 2612Reputation: 2612
Quote:
Originally Posted by steven.c.banks View Post
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.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Send a request to a http server without using sockets. jaepi Programming 7 07-11-2011 10:34 PM
Self signed public key (GPG) prabhatsoni Linux - Software 2 09-16-2010 10:18 PM
Unable to send HTTP POST request using PPP over GPRS harsh_electro Linux - Networking 7 07-25-2008 09:01 PM
RSA public key encryption/private key decription koningshoed Linux - Security 1 08-08-2002 07:25 AM


All times are GMT -5. The time now is 06:24 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration