我跟随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:
答案 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 SAN
,OP 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