GetSocketPeerCertificateChain (open)

Returns the PEM-encoded certificate chain of the peer. Due tot the current design of the SSL code, some data need to be have been received before the SSL connection has been setup fully, and the peer certificate is available.

Syntax

LOADLIB "wh::internet/tcpip.whlib";

STRING FUNCTION GetSocketPeerCertificateChain(INTEGER connectionid)

Parameters

INTEGER connectionid

Socket handle

Return value

STRING

Certificate chain