gpt4 book ai didi

git - 无法在 git bash 中生成新的 CSR

转载 作者:太空狗 更新时间:2023-10-29 13:35:05 25 4
gpt4 key购买 nike

我正在尝试在 Get Https For Free 上生成 SSL

我正在执行 git bash(git 版本 2.9.3.windows.2,mingw64)的步骤,但停留在第 2 步证书签名请求

我输入了以下命令

openssl req -new -sha256 -key domain.key -subj "/" -reqexts SAN -config <(cat /d/Git/usr/ssl/openssl.cnf  <(printf "[SAN]\nsubjectAltName=DNS:dev.xn--p89al22awxc7t2ajoa.com,DNS:dev.stocktalk.kr"))

但是,一个错误让我很烦。

这是错误。问题是什么,如何才能成功生成?

error on line -1 of /proc/3028/fd/63
7656:error:02001003:system library:fopen:No such process:bss_file.c:175:fopen('/proc/3028/fd/63','rb')
7656:error:2006D080:BIO routines:BIO_new_file:no such file:bss_file.c:178:
7656:error:0E078072:configuration file routines:DEF_LOAD:no such file:conf_def.c:195:

最佳答案

如果 openssh 配置的奇特标准输入重定向不起作用,请尝试以下解决方法:

  • /d/Git/usr/ssl/openssl.cnf 复制到其他地方
  • 在新文件上编辑它(或应用您的 sed)
  • 直接在您的 openssh 命令中使用该文件:

     openssl req -new -sha256 -key domain.key -subj "/" -reqexts SAN -config new_edited_file

关于错误 Error Loading request exception section SANOP Minkyu Kim报道 in the comments在“Multi-Domain SSL Setup with “Subject Alternative Names””之后,添加:

subjectAltName = @alt_names

[ alt_names ]
DNS.1 = www.example.com
DNS.2 = example.com

关于git - 无法在 git bash 中生成新的 CSR,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39160884/

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