使用Extfile.cnf时生成docker的签名证书的问题

发布于 2025-02-02 16:51:45 字数 493 浏览 5 评论 0 原文

我正在尝试使用OpenSSL生成docker的签名证书,但是当尝试使用Extfile.cnf实际生成签名证书时,我似乎正在遇到错误

当涉及到步骤时,签名证书:“

我收到错误:” x509:config文件“ extfile.cnf”的第1行上的错误,“

我确定这不是docker的特定或任何东西,并且与openssl本身有关。

有人可以在这里帮助我吗?谢谢

OpenSSL版本:OpenSSL 1.1.1L 2021年8月24日

I am trying to generate a signed certificate for docker using openssl, but I seem to be running into an error when trying to actually generate the signed certificate using the extfile.cnf

I am essentially following this guide:
https://docs.docker.com/engine/security/protect-access/#use-tls-https-to-protect-the-docker-daemon-socket

When it comes to the step "Now, generate the signed certificate:"

I get the error: "x509: Error on line 1 of config file "extfile.cnf""

I am sure this is not docker specific or anything, and relates to openssl itself.

Can someone assist me here? thanks

OpenSSL version: OpenSSL 1.1.1l 24 Aug 2021

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

零度℉ 2025-02-09 16:51:45

请使用更改您的Extfile.cnf

subjectAltName = @alt_names

[alt_names]
DNS.1 = *.domain.com
IP.1 = xxx.xxx.xxx.xxx

文件

Please change your extfile.cnf file with

subjectAltName = @alt_names

[alt_names]
DNS.1 = *.domain.com
IP.1 = xxx.xxx.xxx.xxx

Hopefully will work for you

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文