views:

30

answers:

1

I am using the function CertCreateSelfSignCertificate (http://msdn.microsoft.com/en-us/library/aa376039(VS.85).aspx) to generate a certificate. I need to specify the key size to be 2048. I do not see how to provide this parameter.

I would appreciate any help in this matter.

Thanks.

+3  A: 

Look at the description for the dwFlags argument as described in CryptGenKey. That should permit you to select the key length.

Slartibartfast
Thank you very much!!
Sako73