Giter VIP home page Giter VIP logo

Comments (11)

mozillazg avatar mozillazg commented on June 2, 2024

@hyacinthus 可以试试下面的办法:

from go-cos.

hyacinthus avatar hyacinthus commented on June 2, 2024

好的,谢谢,我发工单吧。完了可以考虑把官方的回复放readme里,毕竟后端库多半是内网访问的需求。。。

from go-cos.

hyacinthus avatar hyacinthus commented on June 2, 2024

结果腾讯云新鲜出炉了一个 cos golang sdk
我看他们大量参考了这个库呢
不过算是把没实现的补齐了

https://github.com/tencentyun/cos-go-sdk-v5

from go-cos.

mozillazg avatar mozillazg commented on June 2, 2024

@hyacinthus 他们的版本没有这个证书问题?如果他们的版本没有的话,我在 README 里添加一下这个问题。

from go-cos.

hyacinthus avatar hyacinthus commented on June 2, 2024

我还没抽出空来切,我现在去切换试下。

from go-cos.

hyacinthus avatar hyacinthus commented on June 2, 2024

哎 被骗了,他们的也报……

我还把工单关了,再开一个去。

from go-cos.

yaoxingshuai avatar yaoxingshuai commented on June 2, 2024

mozillazg,我看cos最近出的go sdk和你这个很像,你是在腾讯工作吗

from go-cos.

mozillazg avatar mozillazg commented on June 2, 2024

@yaoxingshuai 没,我没在腾讯工作。

from go-cos.

solarhell avatar solarhell commented on June 2, 2024

腾讯直接抄了代码,MIT协议里署名也没有了...

from go-cos.

mozillazg avatar mozillazg commented on June 2, 2024

@solarhell 有呀:https://github.com/tencentyun/cos-go-sdk-v5/blob/master/LICENSE#L3

from go-cos.

hyacinthus avatar hyacinthus commented on June 2, 2024

不好意思,经过一番折腾,想起来我遇到过这个坑。
虽然走的内网但是cvm是能连外网的,应该是能验证签名的呀。
于是想起来 debian 的裸镜像是没预装证书的。
需要在 dockerfile 里自己装 ca-certificates 这个包。

...
FROM debian

RUN apt-get update \
    && apt-get install -y -q --no-install-recommends \
    ca-certificates \
    && apt-get clean \
    && rm -r /var/lib/apt/lists/*

ENV TZ=Asia/Shanghai

COPY --from=build-env /app/app /usr/bin/app

CMD ["app"]

在 debian 只要访问 HTTPS 就要装这个证书……

from go-cos.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.