Previously I wrote a web REST API using C# with Visual Studio 2019. It was connecting via HTTP and not HTTPS. To debug it, I used Fiddler with the composer and sent a POST to the API and then looked at the response. I am now trying to do the same thing except it is an HTTPS request. Since I have successfully done this with HTTP, I am 99% sure I have everything correct (URL, request body, API, etc.). The problem is that I immediately receive an error.
502 - [Fiddler] The connection to 'localhost' failed.
System.Security.SecurityException Failed to negotiate HTTPS connection with server.fiddler.network.https> HTTPS handshake to localhost (for #63) failed. System.IO.IOException Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. < An existing connection was forcibly closed by the remote host.
I am pretty sure this has something to do with some type of certificate but my knowledge of HTTPS and certificates is VERY limited. I understand the concept but very little more. Can some one point me in the right direction for getting the config correct so the two can talk? If I have right keywords, I can go digging but I don't know what is wrong so I don't know what to search for.