How to fix “Adding the certificate to the Trusted Root Certficates store failed with the following error: Failed to create the certificate.”

Wouter
3 min readMar 12, 2021

Last week I was trying to get a .NET 5 docker application to work in Visual Studio. But when I tried to debug the the project (by pressing the green play button like you should) I got the following error:

Adding the certificate to the Trusted Root Certficates store failed with the following error: Failed to create the certificate.

--

--