How can I understand the error when trying to open a socket? I get error 0, however all SSL certificate works fine.
$fp = fsockopen("ssl://cloud-messaging.bitrix24.com", 443, $errno, $errstr);
if (!$fp) {
echo "ERROR: $errno - $errstr<br />\n: " . $errno;
print_r($errstr);
} else {
fclose($fp);
}
Result:
ERROR: 0 -
: 0
But it works when I try to open the socket with myself.
Maybe there is some script that will allow you to get at least some error?