Quantcast
Channel: Active questions tagged https - Stack Overflow
Viewing all articles
Browse latest Browse all 1491

DotNet not valid certificate found

$
0
0

I have seen this questions many times, but none of the answers works for me.My DotNet Core app fails

The code:

    public static void Main(string[] args)    {        CreateHostBuilder(args).Build().Run();    }

the error:

System.InvalidOperationException  HResult=0x80131509  Message=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.  Source=Microsoft.AspNetCore.Server.Kestrel.CoreThis exception was originally thrown at this call stack:[External Code]AccionesWeb.Program.Main(string[]) in Program.cs

When I try to create a cert, it creates it without problem, but then it says not found

PS ...> dotnet dev-certs https -tTrusting the HTTPS development certificate was requested. A confirmation prompt will be displayed if the certificate was not previously trusted. Click yes on the prompt to trust the certificate.The HTTPS developer certificate was generated successfully.PS ...> dotnet dev-certs https -cNo valid certificate found.

enter image description here


Viewing all articles
Browse latest Browse all 1491

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>