-api-id | -api-type |
---|---|
P:Windows.Networking.Sockets.StreamWebSocketInformation.ServerIntermediateCertificates |
winrt property |
Gets the intermediate certificates sent by the server during SSL negotiation when making an SSL connection with a StreamWebSocket server.
The set of certificates sent by the server during SSL negotiation.
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.