Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 1.29 KB

streamwebsocketinformation_servercertificate.md

File metadata and controls

27 lines (18 loc) · 1.29 KB
-api-id -api-type
P:Windows.Networking.Sockets.StreamWebSocketInformation.ServerCertificate
winrt property

Windows.Networking.Sockets.StreamWebSocketInformation.ServerCertificate

-description

Gets the certificate provided by the server when a secure WebSocket connection has been established.

-property-value

The server certificate.

-remarks

By the time the server certificate is available through this property, the SSL connection has already been established.

If you wish to inspect the server certificate 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.

If you merely wish to ignore certain classes of error when the server certificate is validated (for example, you are using a self-signed certificate and wish to ignore the validation error caused by this condition) you can use the IgnorableServerCertificateErrors property to ignore the relevant classes of errors.

-examples

-see-also