I was following a guide today on WCF and using makecert to create self signed certificates e.g. makecert –n "CN-FakeRootCA” –r –sv FakeRootCA.pvk FakeRootCA.cer
Whenever I tried to create the certificate, I got the error
Error: CryptCertStrToNameW failed => 0x80092023 (-2146885597)
The reason for this was the version of makecert being used was an old version. Even though I was running it from the visual studio 2008 command prompt, the environment mappings were causing it to run version 5.1, instead of version 6.
Using windows search I found that the latest version is at:
C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin
So you can either makecert from this directory, or alter you path variables.