-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Signature Does Not Match.... #1
Comments
检查一下 |
无误。。有个 python版本 同样 AccessKeyId 和 AccessKeySec 是可以成功使用的。 |
方便贴一下 debug 输出的 |
回复看到了。里面有些地方的 |
谢谢。希望可以帮到你~ |
我改了签名原串的生成方法,更加严谨一些。 |
试了,还是不行,真是有坑。。。 关于openssl, 我是在mac上用的: $ openssl version
OpenSSL 1.0.2o 27 Mar 2018 输出如下:
|
OSX 的机器不好找,我找了台装了 LibreSSL 2.2.7 的机器,运行是没问题的。 |
把216行的 echo 改为 /bin/echo 试试。我这样改了以后就ok了。 (受这篇文章启发:https://blog.csdn.net/github_33873969/article/details/77728017 ) |
@Sunliming 感谢告知,我修改了下。 |
我也是放回这个错误, 我的系统是树莓派 rasberry pi3b
|
这是设置的域名有问题吧?烦请对着ReadMe检查下。 |
作者好!我用的树莓派4b,报同样的错误
|
同样的脚本在macos上可以执行,树莓派4b出问题 |
和 @fraee 的情况类似。同样的脚本在x86上更新成功,树莓派4b报错"Specified signature is not matched with our calculation."。 /bin/echo -n "testid" | openssl dgst -binary -sha1 -hmac "testsecret&" | openssl enc -base64 生成的编码一致,故应该不是 另外,两个系统的时间是一致的。 |
String to Signed 一致,Sign 不一致就恰好说明是 openssl 的问题了,String to Signed 是脚本计算的,Sign 是使用 openssl 算的。 |
不过以下命令在两个系统中的输出一致: /bin/echo -n "testid" | openssl dgst -binary -sha1 -hmac "testsecret&" | openssl enc -base64 另一个用到 附openssl版本: |
The text was updated successfully, but these errors were encountered: