Home MVC Storefront

Certificate Store Error when Adding p12 to the Computer Store

The SSL plot thickens... as I was installing the Transactor for a client today, I ran accross this little gem when I tried to import the certificate into the Computer Store:

“An internal error occurred. This can be either the user profile is not
accessible or the private key that you are importing might require a
cryptographic service provider that is not installed on your system”

I had absolutely no idea how to fix this. I loaded the cert on my box just fine, so I know it wasn't the cert. I also know that all the crypto bits on the machine were fine as I had been loading the sandbox certs just the day before. After googling for a bit, I found an entry in an obscure forum where someone else had this exact problem - long story short it happens when you set the MachineKeys folder security for Windows Server 2003.

For some reason, when you add the NETWORK SERVICE identity to the MachineKeys folder (described in my SSL post) it causes a problem with access rights. It doesn't make sense that ADDING a priviledge would do this, but you never know.

So to get around this, I removed NETWORK SERVICE from the MachineKeys ACLs, added the cert with no problem, and then re-addded when i was finished.


Search Me
Subscribe

Index Of MVC Screencasts

You can watch all of the MVC Screencasts up at ASP.NET, and even leave comments if you like.

Popular Posts
 
My Tweets
  • @jasonbock Kittens are having a really, really rough go of it then - Oxite is #2 on Codeplex downloads: http://www.codeplex.com/
  • Ergodynamic urinals. Awesome. http://twitpic.com/102dz
  • @paulsterling went to Laurelwood yesterday - absolutely stellar
  • At Hopwerks in Portland; awesome beer, outstanding grub, and a play area for the girls. Portland rocks.
  • I seem to have found @shanselman's otter... With "carrot"and all
  About Me



Hi! My name is Rob Conery and I work at Microsoft. I am the Creator of SubSonic and was the Chief Architect of the Commerce Starter Kit (a free, Open Source eCommerce platform for .NET)

I live in Kauai, HI with my family, and when my clients aren't looking, I sometimes write things on my blog (giving away secrets of incalculable value).