certreq with multiple KeyUsage Attributes
Hi all, I want to create a Certification Request with certreq. My inf-File looks like this: [NewRequest] Subject="CN=test.contoso.com,OU=IT Center,O=contoso,L=Zurich,ST=Zurich,C=CH" Exportable=TRUE KeyLength=2048 MachineKeySet=TRUE FriendlyName="test.contoso.com" KeySpec=1 KeyUsage=0x80 [RequestAttributes] CertificateTemplate=WebServer But the KeyUsage 0x80 is only for DigitalSignature. I want to have multiple Usage like: CERT_DIGITAL_SIGNATURE_KEY_USAGE 0x80 CERT_NON_REPUDIATION_KEY_USAGE 0x40 CERT_KEY_ENCIPHERMENT_KEY_USAGE 0x20 So, how can i put multiple attributes in my inf-file that the request wont get an error? I already tried to seperate with comma. Error: C:\certreq -new csr.inf contoso.req Certificate Request Processor: The data is invalid. 0x8007000d (WIN32: 13) csr.inf([NewRequest] KeyUsage = "0x80", "0x40", "0x20") Thanks for help
April 14th, 2011 3:31pm

The Key usage values add up to give unique "combination values) If you add up 0x80+0x40+0x20 in hex, you arrive at the value of -xE0 Just put that value into your request KeyUsage=0xE0 Brian
Free Windows Admin Tool Kit Click here and download it now
April 14th, 2011 3:43pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics