共用方式為


StreamWebSocketInformation.ServerIntermediateCertificates 屬性

定義

取得與 StreamWebSocket 伺服器建立 SSL 連線時,伺服器在 SSL 交涉期間所傳送的中繼憑證。

public:
 property IVectorView<Certificate ^> ^ ServerIntermediateCertificates { IVectorView<Certificate ^> ^ get(); };
IVectorView<Certificate> ServerIntermediateCertificates();
public IReadOnlyList<Certificate> ServerIntermediateCertificates { get; }
var iVectorView = streamWebSocketInformation.serverIntermediateCertificates;
Public ReadOnly Property ServerIntermediateCertificates As IReadOnlyList(Of Certificate)

屬性值

伺服器在 SSL 交涉期間所傳送的憑證集。

實作

Windows 需求

裝置系列
Windows 10 Anniversary Edition (已於 10.0.14393.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v3.0 引進)

備註

此屬性會傳回與 WebSocket 伺服器建立 SSL 連線時所使用的轉送伺服器證書。 這些憑證是由伺服器在 SSL 連線交涉期間提供。 傳回向量中 Certificate 物件的屬性可用來取得憑證的詳細資訊。

透過此屬性取得中繼憑證清單時,已建立 SSL 連線。 如果您想要在連線程式期間檢查伺服器憑證以執行自訂驗證,您應該註冊 StreamWebSocket.ServerCustomValidationRequested 事件的處理常式,並在該處理常式中使用該處理常式執行自訂伺服器驗證,使用 WebSocketServerCustomValidationRequestedEventArgs 實例傳遞至事件處理常式來檢查中繼憑證。

適用於