FluffySpoon.AspNet.EncryptWeMust icon indicating copy to clipboard operation
FluffySpoon.AspNet.EncryptWeMust copied to clipboard

Sample looking for `localhost` developer cert upon start

Open chgeuer opened this issue 4 years ago • 2 comments

Running FluffySpoon.AspNet.EncryptWeMust.Sample gives me

System.InvalidOperationException: Unable to configure HTTPS endpoint. 
No server certificate was specified, and the default developer certificate could not be found or is out of date.
To generate a developer certificate run 'dotnet dev-certs https'. To trust the certificate (Windows and macOS only) run 'dotnet dev-certs https --trust'.
For more information on configuring HTTPS see https://go.microsoft.com/fwlink/?linkid=848054.

Repro 1

I cloned the ffMathy/FluffySpoon.AspNet.EncryptWeMust and opened in VS2019. Trying to run the sample immediately gives above error.

Repro 2

Same happens with my own repo (https://github.com/chgeuer/IdentityServer4-and-FluffySpoonEncryptWeMust/blob/master/src/IdentityServer/STSProgram.cs).

In an old version, I was able to retrieve the real cert and set it for the TLS endpoint, but that seems no longer suported.

chgeuer avatar Aug 06 '20 10:08 chgeuer

Damn, that's not good. I don't have much time on my hands lately, but PRs are welcome. I'll see if I can get time for this after the 15th this month though :(

ffMathy avatar Aug 06 '20 14:08 ffMathy

Getting the same error in my application.

If I add the dev keys using

dotnet dev-certs https --trust

the app starts, and the private and public files are downloaded and stored.

But the site runs serving the dev certificate.

image

bar10dr avatar Oct 05 '20 20:10 bar10dr