使用openssl创建证书

使用openssl创建证书,openssl,key,certificate,Openssl,Key,Certificate,您好,我按照这个指南为一个项目使用openssl创建证书(我们的教授给我们的) 但我使用的是windows和为linux提供的命令。例如,在某些情况下,它们会声明“要创建,请在'sslcert'目录中键入: openssl req -new -x509 -extensions v3_ca -keyout \ private/cakey.pem -out cacert.pem -days 365 -config ./openssl.cnf You will be prompte

您好,我按照这个指南为一个项目使用openssl创建证书(我们的教授给我们的)

但我使用的是windows和为linux提供的命令。例如,在某些情况下,它们会声明“要创建,请在'sslcert'目录中键入:

    openssl req -new -x509 -extensions v3_ca -keyout \
    private/cakey.pem -out cacert.pem -days 365 -config ./openssl.cnf

You will be prompted for information and a password. Do not loose this
password, make sure it is a secure one, and back up the two files that
are created.

The two files that are created are cacert.pem, which is the one you can
give to others for import in their browsers, and cakey.pem, which will
be in the private directory."
我不知道在何处键入此命令,我在openssl中尝试了此命令,但它给了我一个错误,有人可以帮助我在windows上执行此操作吗?

尝试使用

 openssl req -new -x509 -extensions v3_ca -keyout private/cakey.pem -out cacert.pem -days 365 -config openssl.cnf
是否存在private/cakey.pem

我不知道在哪里输入这个命令

您是否在Windows计算机上安装了OpenSSL?从Windows上的源代码构建它通常很痛苦。我鼓励您从Shining Light Productions中获取Thomas Hruska的

Win32OpenSSL有一个Windows安装程序,因此它应该是无痛的。请确保安装到系统目录中,以便无需修改
PATH
s即可使用可执行文件

安装Win32OpenSSL后,您可以在命令提示符中执行命令。命令提示符是Windows上的黑框。您可以使用以下命令打开命令提示符:


但我使用的是windows和为linux提供的命令


命令是相同的(没有斜线的方向)。

这是一个命令。
\
只是指示“此处换行以便于阅读”“.这都是一个很长的命令。对于windows,只需将
/
目录分隔符更改为
\
。我在windows中安装了64位openssl,并打开了openssl.exe来键入命令,是否错误?