Both
TLS/SSL handshake failed. Check certificate for possible corruption.
SSL handshake fails, SSLHandshake() returns fail.
Check certificate for possible corruption and validate the argument of SSLHandshake().
Applies for the platforms that do not use OpenSSL.
15.5