Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

StreamSocketInformation.ServerCertificateErrors | serverCertificateErrors property

Applies to Windows and Windows Phone

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

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:
© 2014 Microsoft