【问题标题】:getting malformed policy error from cloudfront从云端获取格式错误的策略错误
【发布时间】:2014-10-16 13:09:57
【问题描述】:

【问题讨论】:

    标签: amazon-web-services amazon-cloudfront pre-signed-url


    【解决方案1】:

    嗯,它看起来确实格式不正确......签名有几个/ 字符,它不应该。

    docs 表示此管道可用于构建签名:

    cat policy | openssl sha1 -sign private-key.pem | openssl base64 | tr '+=/' '-_~'
    

    如果你这样做了,你的签名中就不应该有任何/——它们都会被转换为~字符。

    【讨论】:

    • 谢谢迈克尔!!我刚刚使用上述命令进行了测试,它工作正常。现在我必须弄清楚如何以编程方式进行!
    猜你喜欢
    • 2023-03-19
    • 2020-10-30
    • 2020-12-18
    • 2020-11-03
    • 2011-03-21
    • 2020-04-24
    • 1970-01-01
    • 2016-10-25
    • 2020-05-02
    相关资源
    最近更新 更多