Creating a Self-Signed Certificate for Identity Provider
I’d recently had to create a self-signed certificate for use in IdentityProvider4 and was coming up against problems when using the default options with New-SelfSignedCertificate PS module.
Identity Server was throwing "CryptographicException: Invalid provider type specified" and I had ensured the user account had access so it should have been all good. After a little bit of digging it turned out the private keys were not accessible from .NET. David Christiansen’s blog post helped me track down the issue but with a little more research I ended up with the following PowerShell to create a working certificate avoiding additional steps I didnt understand ;).
tips (7)
dotnet (7)
aspnet (4)
VueJs (3)
(3)
unit testing (2)
HowTo (2)
ASP.NET (2)
NSubstitute (1)
sln (1)
proj (1)
productivity (1)
ADNUG (1)
Twitch (1)
YouTube (1)
blog (1)
wyam (1)
Azure (1)
RGUHack (1)
dotnet core (1)
Middleware (1)
Identity Provider (1)
PowerShell (1)
Telerik (1)
Web (1)
Development (1)
TFS (1)