views:

217

answers:

1

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

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.

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

A: 

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

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

Zé Carlos
-eku lets you set *extended* key usages, not key usages.
nlawalker
Hum, i see... In that case i suggest you try to use Openssl to generate your cert. I don´t know the answer for your concrete problem using openssl but it is a powerfull tool (better than makecert in my opinion). I suggest you to add the "openssl" flag to your question and change the title to "makecert/Openssl". Perhaps that way you will get more helpfull answers. Regard
Zé Carlos