This one is downloading a file from the bucket or accesses admin without modifications. #!/bin/bash # file="bucket" bucket="admin" file="test.txt" bucket="test" key="xxxx" secret="xxxx" host="192.168.1.114:7480" resource="/${bucket}/${file}" contentType="application/x-compressed-tar" contentType="text/plain" dateValue=`date -R -u` method="GET" stringToSign="${method} ${contentType} ${dateValue} ${resource}" signature=`echo -en "$stringToSign" | openssl sha1 -hmac ${secret} -binary | base64` curl -X ${method} -H "Content-Type: ${contentType}" -H "Date: ${dateValue}" -H "Authorization: AWS ${key}:${signature}" -H "Host: ${host}" "https://${host}${resource}?format=json&stats=True" --insecure echo -----Original Message----- From: Konstantin Shalygin [mailto:k0ste@xxxxxxxx] Sent: zaterdag 24 maart 2018 4:03 To: Marc Roos; ceph-users Subject: Re: Shell / curl test script for rgw On 03/24/2018 07:22 AM, Marc Roos wrote: > > Thanks! I got it working, although I had to change the date to "date > -R -u", because I got the "RequestTimeTooSkewed" error. > > I also had to enable buckets=read on the account that was already able > to read and write via cyberduck, I don’t get that. > > radosgw-admin caps add --uid='test$test1' --caps "buckets=read" > Please, post your version. Because I was tune up date by this reason ("RequestTimeTooSkewed"). k _______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com