【问题标题】:MakeCert - is it possible to change the key size?MakeCert - 是否可以更改密钥大小?
【发布时间】:2009-01-21 00:15:32
【问题描述】:

当我使用 MakeCert.exe 生成证书时,我想将密钥大小从 1024 更改为 2048。

这可能吗?还是我需要设置证书颁发机构 (CA)?

【问题讨论】:

  • 参见 my answer 到另一个主题,该主题允许您使用 certreq 向第三方 CA 请求 2048 位证书。

标签: certificate size key makecert


【解决方案1】:

Here 使用以下语法:

makecert -pe -ss MY -$ individual -n "CN=your name here" -len 2048 -r

抱歉,我无法测试它,因为我没有 Makecert。

【讨论】:

  • 我能够使用 VS2010 中的 makecert 来指定 -len 2048 参数
  • 另一个答案中的说法是,“-len 2048”仅在您的 CRYPTO\RSA 密钥文件夹还没有从证书的先前副本缓存的 1024 位密钥时才有效;需要手动删除密钥。这符合我的观察。
【解决方案2】:

A description of Makecert options can be found at MSDN,但我没有看到用于设置密钥长度的明确设置。

【讨论】:

  • Cheers ISW,我在 MSDN 上查看过,但看不到任何设置密钥大小的选项。
  • "makecert -!"还将为您提供所有高级选项的帮助,包括“-len”。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2015-01-30
  • 2012-04-28
  • 1970-01-01
  • 2010-11-08
  • 2013-04-23
  • 2018-04-17
相关资源
最近更新 更多