When I set the useHttps property to true, I am not able to reach the server.
The instantiation of the server looks like this:
class Listener
{
RestServer server;
public Listener()
{
server = new RestServer();
server.Port = "8137";
server.UseHttps = true;
}
}
The server starts, and the console input tells me that it listens on https://localhost:8137, but when I try and make a request (in Fiddler), I get the error message: 502 Fiddler - Connection Failed.
The connection to 'localhost' failed.
System.Security.SecurityException Failed to negotiate HTTPS connection with server.fiddler.network.https> HTTPS handshake to localhost (for #38) 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
For me it looks like there is a problem with the HTTPS and perhaps the certificate. But where am I able to specify the certificate?