Openssl证书请求失败

时间:2012-08-30 17:01:37

标签: openssl

我想用openssl创建证书请求。我需要在主题中使用“E”作为电子邮件字段名称。所以我尝试了以下命令:

openssl req -new -key privkey.pem -subj "/E=example@example.org" -out request.pem

作为回应,我得到了:

Subject Attribute E has no known NID, skipped

它说的完全一样。如果我向主题添加更多参数,则会添加它们,但会跳过电子邮件。

我试过google,但同样的错误信息会出现几次,但我找不到解决方法。

我尝试过openssl 0.9.8o和1.0.1c。

1 个答案:

答案 0 :(得分:8)

您要查找的短名称是“emailAddress”,而不是“E”。这有效:

openssl req -new -key privkey.pem -subj "/emailAddress=example@example.org" -out request.pem
相关问题