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" -----Original Message----- From: Konstantin Shalygin [mailto:k0ste@xxxxxxxx] Sent: zondag 18 maart 2018 6:35 To: ceph-users@xxxxxxxxxxxxxx Cc: Marc Roos Subject: *****SPAM***** Re: Shell / curl test script for rgw Hi Mark > But is there a simple shell script > that I can use to test with? I have problems with the signature in > this one This is 100% working test admin api (uid should have caps="buckets=read"). > #!/bin/bash > s3_access_key="" > s3_secret_key="" > s3_host="objects-us-west-1.dream.io" > query="admin/bucket" > method="GET" > date=$(for i in $(date -u "+%H") ; do date "+%a, %d %b %Y $(( 10#$i > )):%M:%S +0000" ; done) header="${method}\n\n\n${date}\n/${query}" > sig=$(echo -en ${header} | openssl sha1 -hmac ${s3_secret_key} -binary > | base64) > > curl -s -H "Date: ${date}" \ > -H "Authorization: AWS ${s3_access_key}:${sig}" \ -H "Host: > ${s3_host}" \ -X ${method} \ > "https://${s3_host}/${query}?format=json&stats=True" k _______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com