makecert 和 DSA、DH
是否可以创建包含 Diffie-Hellman 公钥的 X.509V3 证书并使用 DSA 或 ECDSA 算法对其进行签名?
我希望使用 makecert 来完成此操作,
非常感谢
Is it possible to create a X.509V3 certificate that contains Diffie-Hellman public key and sign it using DSA or ECDSA algorithm ?
I hope doing this using makecert
Thank you a lot
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
makecert 仅支持 DSA,不支持 ECDSA。这是因为它基于 Crypto API 1.0,不支持椭圆曲线。 CNG 支持椭圆曲线,CNG 是 CryptoAPI 的替代品。
下面是 makecert 命令行的示例,它使您能够使用 DSA 根签署 DSA 证书。
makecert.exe -sp“Microsoft 增强型 DSS 和 Diffie-Hellman 加密提供程序”-sy 13 -ss ROOT -sv MyDSARootKey.pvk -pe -r -n“CN=DSA 根 CA”-cy 权限 MyDSARootCert.crt< /strong>
这会将根证书放入 ROOT 存储中,并创建与其关联的 PVK 和 CRT 文件。请注意“-r”开关指示自签名证书。
makecert.exe -sp "Microsoft Enhanced DSS and Diffie-Hellman Cryptographic Provider" -sy 13 -ss MY -sk UserKeyName -pe -n "CN=User Name " -cy end -iv MyDSARootKey.pvk -ic MyDSARootCert.crt -ip "Microsoft 增强型 DSS 和 Diffie-Hellman 加密提供程序" -iy 13 MyUserCert.crt
这会将用户证书放入“我的”存储中。用户密钥在 CSP 内部生成,而根密钥已放在 PVK 文件中。如果需要,您还可以使用开关“-sv”告诉 makecert 为用户创建 PVK 文件。
我希望这会有所帮助。
干杯,
穆尼尔·伊德拉西
·伊德里克斯
http://www.idrix.fr
makecert supports only DSA, not ECDSA. That's because it is based on Crypto API 1.0 that doesn't support elliptic curves. Elliptic curves are supported by CNG which is the replacement of CryptoAPI.
Here is an example of makecert command lines that will enable you to have DSA certificates signed with a DSA root.
makecert.exe -sp "Microsoft Enhanced DSS and Diffie-Hellman Cryptographic Provider" -sy 13 -ss ROOT -sv MyDSARootKey.pvk -pe -r -n "CN=DSA Root CA" -cy authority MyDSARootCert.crt
This will put the root certificate in the ROOT store and it will create the PVK and CRT files associated with it. Notice the "-r" switch indicating a self-siged certificate.
makecert.exe -sp "Microsoft Enhanced DSS and Diffie-Hellman Cryptographic Provider" -sy 13 -ss MY -sk UserKeyName -pe -n "CN=User Name" -cy end -iv MyDSARootKey.pvk -ic MyDSARootCert.crt -ip "Microsoft Enhanced DSS and Diffie-Hellman Cryptographic Provider" -iy 13 MyUserCert.crt
This will put the user certificate in the MY store. The user key is generated inside the CSP whereas the root key has been put on a PVK file. If you want, you can also tell makecert to create a PVK file for the user using the switch "-sv".
I hope this will help.
Cheers,
Mounir IDRASSI
IDRIX
http://www.idrix.fr