使用Makecert设置密钥用法属性 [英] Setting Key Usage attributes with Makecert

查看:181
本文介绍了使用Makecert设置密钥用法属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用makecert或我可以用来生成自己的测试证书的任何其他工具来设置密钥用法"属性?

Is it possible to set Key Usage attributes using makecert, or any other tool I can use to generate my own test certificates?

我感兴趣的原因是,用于BizTalk Server AS2传输的证书要求对签名和数据加密使用密钥数字签名,对加密/解密要求使用密钥加密,并且我想使用此功能.

The reason I'm interested is that certificates used for BizTalk Server AS2 transport require a key usage of Digital Signature for signing and Data Encipherment or Key Encipherment for encryption/decryption, and I want to play around with this feature.

我了解了如何使用makecert设置增强型密钥用法属性,而不是密钥用法.

I see how to set enhanced key usage attributes with makecert, but not key usage.

推荐答案

您可以使用-eku选项指定证书的密钥用法.

You can use the -eku option to specify the key usage to your certificate.

在此处查看详细信息: http://msdn.microsoft.com/en-us/library/aa386968(VS.85).aspx

See details here: http://msdn.microsoft.com/en-us/library/aa386968(VS.85).aspx

这篇关于使用Makecert设置密钥用法属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆