sean
sean

Reputation: 11624

File not found error when creating a private key using CERTENROLLLib

System.IO.FileNotFoundException: CertEnroll::CX509PrivateKey::Create: The system cannot find the file specified. 0x80070002 (WIN32: 2)

The error above is the exception thrown when I attempt to create a private key to generate a CSR using the CX509PrivateKeyClass class from CertEnroll.dll.

It only seems to happen when I attempt to execute code deployed on a windows 2008 server.

It runs fine under windows 7.

Upvotes: 2

Views: 1260

Answers (1)

Shaun Xu
Shaun Xu

Reputation: 4656

This is because you don't have proper permission to call the COM. I'm not sure the lowest permission but local administrator should work.

Upvotes: 1

Related Questions