Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: signature problem

by poj (Abbot)
on Sep 04, 2019 at 15:10 UTC ( [id://11105604]=note: print w/replies, xml ) Need Help??


in reply to signature problem

Looking at the Ruby code for rpc_client.rb shows the signature being calculated using the secret key and the encoded parameter string. The signature parameter is added after the calculation.

normalized = normalize(params) canonicalized = canonicalize(normalized) string_to_sign = "#{method}&#{encode('/')}&#{encode(canonicalized)}" key = self.access_key_secret + '&' signature = Base64.encode64(OpenSSL::HMAC.digest('sha1', key, s +tring_to_sign)).strip normalized.push(['Signature', encode(signature)])
poj

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11105604]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (7)
As of 2024-04-23 18:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found