Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 2.47 KB

streamsocketinformation_servercertificate.md

File metadata and controls

28 lines (19 loc) · 2.47 KB
-api-id -api-type
P:Windows.Networking.Sockets.StreamSocketInformation.ServerCertificate
winrt property

Windows.Networking.Sockets.StreamSocketInformation.ServerCertificate

-description

Gets the certificate from the server when making an SSL connection with a StreamSocket.

-property-value

The certificate from the server with the SSL information.

-remarks

This property gets the server certificate used for an SSL connection when connecting with a StreamSocket. This certificate is provided by the server during the SSL connection negotiation. The properties on the Certificate object returned can be used to get detailed information on the certificate.

This property is useful for notifying the user why an SSL connection failed.

This property can also be used to enforce stronger security than the default connection using the Certificate object returned. The BuildChainAsync methods and other properties on the Certificate object and methods on the CertificateChain object can be used when an app needs stronger security than the standard SSL negotiation.

-examples

-see-also

How to use advanced socket controls, Supporting proximity and tapping, BuildChainAsync, Certificate, CertificateChain, StreamSocketControl.IgnorableServerCertificateErrors, ServerCertificateErrorSeverity, ServerCertificateErrors, ServerIntermediateCertificates, SocketSslErrorSeverity, StreamSocket