无法为自签名证书生成server.csr

时间:2019-06-15 06:31:11

标签: https openssl private-key csr

我正在尝试为我的网站生成一个自签名证书。我能够生成server.key文件,但是当我尝试执行用于生成server.csr文件的命令以继续进行操作时,我没有收到任何错误,但也没有生成csr文件。我在机器上的任何地方都找不到该文件。这是我正在使用的命令

我尝试将文件保存到已知位置。我什至尝试对包含openssl应用程序的文件夹给予完全许可,甚至尝试以管理模式运行。

这是我无法前进的地方:

C:\Program Files (x86)\GnuWin32\bin>openssl req -config "C:\Program Files 
(x86)\GnuWin32\share\openssl.cnf" -new -key server.key -sha256 -out 
server.csr
Loading 'screen' into random state - done
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a 
DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]:IN
State or Province Name (full name) [Some-State]:Delhi
Locality Name (eg, city) []:Delhi
Organization Name (eg, company) [Internet Widgits Pty Ltd]:CT
Organizational Unit Name (eg, section) []:IT
Common Name (eg, YOUR name) []:flyingtreat.com
Email Address []:hello@flyingtreat.com

没有错误。接下来是最后一件事,我再次看到的是提示。

Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:killpir@cy

C:\Program Files (x86)\GnuWin32\bin>

我不知道是否生成了server.csr文件。请帮忙!

0 个答案:

没有答案