ServerCertificateErrors | serverCertificateErrors property

StreamSocketInformation.ServerCertificateErrors | serverCertificateErrors property

[ Updated for UWP apps on Windows 10. For Windows 8.x articles, see the archive ]

Gets the list of errors that occurred making an SSL connection with a StreamSocket.

Syntax


var serverCertificateErrors = streamSocketInformation.serverCertificateErrors;

Property value

Type: IVectorView<ChainValidationResult> [JavaScript/C++] | System.Collections.Generic.IReadOnlyList<ChainValidationResult> [.NET]

The list of errors that occurred making an SSL connection.

Remarks

The ServerCertificateErrors property gets a vector of ChainValidationResult enumeration values of errors that occurred making an SSL connection with a StreamSocket.

SSL server certificate errors should only be ignored in advanced scenarios. Disregarding server certificate errors may result in the loss of privacy or integrity of the content passed over the SSL session.

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Networking.Sockets
Windows::Networking::Sockets [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.Networking.Sockets
Windows::Networking::Sockets [C++]

Metadata

Windows.winmd

See also

Other resources
How to use advanced socket controls (HTML)
How to use advanced socket controls (XAML)
Supporting proximity and tapping
Reference
ChainValidationResult
ServerCertificate
ServerCertificateErrorSeverity
ServerIntermediateCertificates
SocketSslErrorSeverity
StreamSocketControl.IgnorableServerCertificateErrors
StreamSocket
StreamSocketInformation

 

 

Show:
© 2016 Microsoft