簡體   English   中英

Grapevine restserver無法通過useHTTPS訪問

[英]Grapevine restserver not reacheable with useHTTPS

當我將useHttps屬性設置為true時,我無法訪問服務器。

服務器的實例化如下所示:

class Listener
{
    RestServer server;
    public Listener()
    {
        server = new RestServer();

        server.Port = "8137";
        server.UseHttps = true;
    }
}

服務器啟動,控制台輸入告訴我它在https:// localhost:8137上偵聽,但是當我嘗試發出請求時(在Fiddler中),我收到錯誤消息: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 

對我來說,看起來HTTPS和證書都有問題。 但我在哪里可以指定證書?

Grapevine構建於.NET HttpListener類之上。 從代碼的角度來看 ,您在原始帖子中已經足夠 但是,還需要在運行服務器的計算機上完成更多工作。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM