无法在git bash中生成新的CSR

时间:2016-08-26 07:37:54

标签: git bash openssl mingw-w64

我试图在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:

1 个答案:

答案 0 :(得分:5)

如果openssh配置的花式stdin重定向不起作用,请尝试解决方法:

  • /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