为什么有效性扩展CA不包含私钥信息?
我有一个自签名 rootcacert.pem ,它将在接下来到期 月。 由于特定原因,我延长了此有效期 rootcacert 使用以下命令:
openssl x509 -in rootcacert.pem -days 365 -out Extendedrootcacert.pem - signkey rootcakey.pem -text
因此,我得到新的根 ca 作为extendrootcacert.pem。 使用新的根ca, 我可以使用旧根 ca 签名的用户证书以及 由这个新的根 ca 签名的较新的用户证书。 所有功能 工作正常,没有任何问题。
但是当我打开这个extendrootcacert.pem & 原来的 rootcacert.pem文件使用记事本,发现有区别 内容之间。
rootcacert.pem有私钥和其他信息(Private- 键,publicExponent,privateExponent,prime1,prime2,指数1,指数2,系数), 看起来像:
http:// ospkibook.sourceforge.net/docs/OSPKI-2.4.7/OSPKI-html/sample-key-components.htm
但是新的extendrootcacert.pem中没有此信息 它。 两个证书中的所有其他字段都相同。
我不知道原始的rootcacert.pem是如何生成的。
会对我的应用程序的功能产生任何不利影响吗? 有什么办法可以将这些信息包含在新的扩展根中 约 是否绝对有必要在新版本中包含此信息 扩展根约。?
感谢任何意见。
I have one self signed rootcacert.pem which is going to expire next
month. Due to specific reason I have extended the validity of this
rootcacert using the command :
openssl x509 -in rootcacert.pem -days 365 -out extendedrootcacert.pem -
signkey rootcakey.pem -text
So I get the new root ca as extendedrootcacert.pem. Using new root ca,
I am able to use user certificate signed by old root ca as well as
newer user certificates signed by this new root ca. All functionality
works fine without any problem.
But when I opened this extendedrootcacert.pem & original
rootcacert.pem file using notepad, I found that there is a difference
between the contents.
The rootcacert.pem has private key and other information(Private-
Key,publicExponent,privateExponent,prime1,prime2,exponent1,exponent2,coefficient),
which looks like :
http://ospkibook.sourceforge.net/docs/OSPKI-2.4.7/OSPKI-html/sample-key-components.htm
But the new extendedrootcacert.pem does not have this information in
it.
All other field are same in both the certificate.
I dont know how the original rootcacert.pem was generated.
Will there be any adversed impact on my application's functionality.
Is there any way to include this information in the new extended root
ca. Is it absolutely necessary to have this information in new
extended root ca.?
Appreciate any input.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你的链接是错误的。
证书的重要部分就在字里行间:
所有人类能理解的外部事物都仅供人类消费。
您可以使用以下命令对这两个信息进行新转储
并进行比较。
您的 rootca.pem 也可能将密钥和证书合并到一个文件中。 在这种情况下,您会发现如下行:
然后您应该将其添加到您的extendrootca.pem中。
Your link is erronous.
The important part for the certificate is between the lines:
All human comprehensible outside are only for human consumption.
You can do a fresh dump of both informations with:
and compare them.
It is also probable that your rootca.pem combine both the key and the certificate in one single file. In this case you will find lines like:
You should then add that to your extendedrootca.pem.