【问题标题】:What is the role of the -signkey option in openssl-req?openssl-req 中 -signkey 选项的作用是什么?
【发布时间】:2021-11-19 10:29:12
【问题描述】:
openssl genrsa -out server.key 1024
openssl req -new -key server.key -out server.csr
openssl x509 -req -in server.csr -out server.crt -signkey server.key -days 3650

这是使用 OpenSSL 生成自签名 SSL 证书的常用命令。

让我困惑的是第三个命令行中的-signkey参数,这个选项有什么用?我在openssl req -help 中没有看到它。

谁能回答一下?提前致谢!

【问题讨论】:

    标签: linux openssl


    【解决方案1】:

    您为什么要查看req 的帮助?第三行是使用x509 命令:

    ]$ openssl x509 -help
    ...
     -signkey infile       Self sign cert with arg
    

    所以它是您对证书进行自签名的密钥。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-11-01
      • 1970-01-01
      • 2015-04-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-12-01
      相关资源
      最近更新 更多