You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Set this in .s3cfg:
host_bucket = %(bucket)s.s3.AMAZONAWS.com
s3cmd ls s3://somebucket
ERROR: S3 error: 403 (SignatureDoesNotMatch): The request signature we calculated does not match the signature you provided. Check your key and signing method.
This used to work in 1.6.1. It's a new issue in 2.0.0.
It appears 2.0.0 has changed to emit the Host header in lowercase conversion. But the signature was computed with the original hostname without conversion.
The text was updated successfully, but these errors were encountered:
Thank you very much for the detailed report and for having investigated it.
This was a nasty bug.
I have a pushed a fix for it. Don't hesitate to give it a try with the MASTER version if you can.
I tested. The fix works. Thanks. I know this is unlikely a problem for out-of-the-box use with Amazon S3. But when used with S3-compatible systems, some people, like me, has a bad habit of using mixed-case hostname, e.g., S3-server-A.acme.com
Set this in .s3cfg:
host_bucket = %(bucket)s.s3.AMAZONAWS.com
s3cmd ls s3://somebucket
ERROR: S3 error: 403 (SignatureDoesNotMatch): The request signature we calculated does not match the signature you provided. Check your key and signing method.
This used to work in 1.6.1. It's a new issue in 2.0.0.
It appears 2.0.0 has changed to emit the Host header in lowercase conversion. But the signature was computed with the original hostname without conversion.
The text was updated successfully, but these errors were encountered: