windowsinternet-explorerdigital-certificatecsrcertenroll

An enrollment policy server could not be located


I tried creating a PKCS10 request from another dll. In case of xenroll, the CSR got created successfully. Where as when i use certenroll, "An enrollment policy server could not be located" error is returned in the "InitializeFromPrivateKey" function call. Can someone help me out on why this error occur.


Solution

  • If you pass string.Empty it works.