【问题标题】:creation of certificate using openssl使用 openssl 创建证书
【发布时间】:2014-03-15 02:00:50
【问题描述】:

您好,我正在按照本指南使用 openssl 为项目创建证书(我们的教授给了我们) http://www.flatmtn.com/article/setting-openssl-create-certificates#SSLCert-7

但我使用的是为 linux 提供的 windows 和命令。例如,在某些时候,他们声明“要创建,在 '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 上这样做?

【问题讨论】:

  • 这是一个命令。 \ 只是表示“为了便于阅读而在此处换行”。这都是一个单一的 LONG 命令。对于 Windows,只需将 / 目录分隔符更改为 \

标签: openssl key certificate


【解决方案1】:

试试

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

存在 private/cakey.pem ???

【讨论】:

    【解决方案2】:

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

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

    Win32OpenSSL 有一个 Windows 安装程序,所以它应该是无痛的。一定要安装到系统目录,这样可执行文件就可以不用修改PATHs了。

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


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

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

    【讨论】:

    • 我在我的windows中安装了一个64位的openssl,我打开openssl.exe输入命令,是不是错了?
    猜你喜欢
    • 2019-10-27
    • 2023-04-09
    • 1970-01-01
    • 2020-05-01
    • 2022-10-24
    • 1970-01-01
    • 2019-04-30
    • 1970-01-01
    • 2010-09-20
    相关资源
    最近更新 更多