Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sample looking for localhost developer cert upon start #110

Open
chgeuer opened this issue Aug 6, 2020 · 2 comments
Open

Sample looking for localhost developer cert upon start #110

chgeuer opened this issue Aug 6, 2020 · 2 comments

Comments

@chgeuer
Copy link
Contributor

chgeuer commented Aug 6, 2020

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.

@ffMathy
Copy link
Owner

ffMathy commented Aug 6, 2020

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 :(

@bar10dr
Copy link

bar10dr commented Oct 5, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants