Sako73
Sako73

Reputation: 10137

How to specifiy key size in the CertCreateSelfSignCertificate function

I am using the function CertCreateSelfSignCertificate to generate a certificate. I need to specify the key size to be 2048. I do not see how to provide this parameter.

Upvotes: 3

Views: 659

Answers (1)

Slartibartfast
Slartibartfast

Reputation: 1700

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

Upvotes: 5

Related Questions