Both
Could not get length of peer’s certificate
Fetching the length of peer’s certificate fails, SSLGetPeerCertificateChainLength() returns fail.
Ensure that the remote connection is capable of establishing of SSL connection.
15.5