无法在git bash中生成新的CSR

Min*_*Kim 4 git bash openssl mingw-w64

我试图在免费获取Https上生成SSL

我正在git bash(git version 2.9.3.windows.2,mingw64)上执行stepts,但遇到了步骤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"))
Run Code Online (Sandbox Code Playgroud)

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

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

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:
Run Code Online (Sandbox Code Playgroud)

Von*_*onC 5

如果openssh config的标准stdin重定向不起作用,请尝试以下解决方法:

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

     openssl req -new -sha256 -key domain.key -subj "/" -reqexts SAN -config new_edited_file
    
    Run Code Online (Sandbox Code Playgroud)

关于错误Error Loading request exception section SANOP Minkyu Kim 带有“主题备用名称”的多域SSL设置” 之后的注释中报告,并添加:

subjectAltName = @alt_names

[ alt_names ]
DNS.1 = www.example.com
DNS.2 = example.com
Run Code Online (Sandbox Code Playgroud)