6

I have a .NET Core Console app, and I'm trying to send an HttpRequest to a locally running version of my application. I'm sending a POST request with an auth token from Microsoft to our authentication endpoint, and essentially just trying to validate it.

With each request, I run into the following exception: The remote certificate is invalid because of errors in the certificate chain: UntrustedRoot

I don't know much about certificates, so any guidance here would be greatly appreciated.

1 Answer 1

5

You can refer to the official link,and try the commands in it.

dotnet dev-certs https --clean dotnet dev-certs https --trust 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.