gpt4 book ai didi

ssl - error=x509 : certificate is valid for user A, not localhost in Docker 是什么意思?

转载 作者:太空宇宙 更新时间:2023-11-03 14:43:24 25 4
gpt4 key购买 nike

我正在使用 Docker 容器来运行一堆服务,所有这些服务都使用证书相互通信。

当启动这些服务时,有一个具体的提示以下错误

> discovery_1 | INFO ttn: Got public keys for token validation
> discovery_1 | DEBUG Connected to gRPC server Address=localhost:1900
> discovery_1 | FATAL Could not start client for gRPC proxy error=x509: certificate is valid for discovery, not localhost
> ttnbackbone_discovery_1 exited with code 1

我已经为“发现”用户创建了证书,但 Docker 仍然以某种方式为本地主机运行它,我不明白...我也关注了 this tutorial of certificates usage来自 Docker,但我仍然有同样的错误。

我还能做什么?

提前致谢

问候!

最佳答案

我今天遇到了这个。 x509 证书具有 Common Name 属性,某些软件使用该属性来匹配服务器的 DNS 主机名。这是我的错误,证书的 CN 为 localhost,DNS 主机名为 docker1-staging:

error during connect: Get https://docker1-staging:2376/v1.26/containers/json: x509: certificate is valid for localhost, not docker1-staging

我必须重新生成 Docker 服务器使用的证书,并确保它的 CN 值为 docker1-staging。您必须对 localhost 的 CN 值执行相同的操作。

关于ssl - error=x509 : certificate is valid for user A, not localhost in Docker 是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41237752/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com