Share via


StreamWebSocketInformation.ServerIntermediateCertificates Property

Definition

Gets the intermediate certificates sent by the server during SSL negotiation when making an SSL connection with a StreamWebSocket server.

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)

Property Value

The set of certificates sent by the server during SSL negotiation.

Implements

Windows requirements

Device family
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v3.0)

Remarks

This property returns the intermediate server certificates used when making an SSL connection with a WebSockets server. These certificates are provided by the server during the SSL connection negotiation. The properties on the Certificate objects in the returned vector can be used to get detailed information on the certificates.

By the time the list of intermediate certificates is available through this property, the SSL connection has already been established. If you wish to inspect the server certificates during the connection process in order to perform custom validation, you should register a handler for the StreamWebSocket.ServerCustomValidationRequested event, and perform your custom server validation in that handler, using the WebSocketServerCustomValidationRequestedEventArgs instance passed to your event handler to inspect the intermediate certificates.

Applies to