Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

signature problem

by bigup401 (Pilgrim)
on Sep 04, 2019 at 14:03 UTC ( [id://11105596]=perlquestion: print w/replies, xml ) Need Help??

bigup401 has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: signature problem
by poj (Abbot) on Sep 04, 2019 at 15:10 UTC

    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
    A reply falls below the community's threshold of quality. You may see it by logging in.
Re: signature problem
by Corion (Patriarch) on Sep 04, 2019 at 14:06 UTC
    Specified signature is not matched with our calculation.

    Does that sound to you as if the other side is expecting a random string?

    Consider actually reading the documentation of the API instead of trying to send random data.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-20 00:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found