Hi Michal,

Tried the first S3 authentication example once more:

s3cmd sign $(printf "GET\n\n\nTue, 27 Mar 2007 19:36:42 +0000\n/johnsmith/photos/puppy.jpg")
Signature: UJm2+MfkvdNJFpu71x6T+9+kWuc=

I then tried to generate a signature to use in a query string (last in the sequence of S3 examples) in the s3 devguide.

GET /photos/puppy.jpg
?AWSAccessKeyId=0PN5J17HBGZHT7JJ3X82&Expires=1141889120&Signature=vjbyPxybdZaN
mGa%2ByT272YEAiv4%3D HTTP/1.1
Host: johnsmith.s3.amazonaws.com
Date: Mon, 26 Mar 2007 19:37:58 +0000


s3cmd sign $(printf "GET\n\n\n1141889120\n/johnsmith/photos/puppy.jpg")
Signature: UJm2+MfkvdNJFpu71x6T+9+kWuc=

and the same signature was generated. Is there something wrong with the way the string-to-sign is passed across? Don't know scripting in Linux so cannot figure it out.