I made a quick test with the page you mentioned and fsock:
Code:
php.exe ssl_test.php
Warning: fsockopen(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed in D:\fsock_test\ssl_test.php on line 20
Warning: fsockopen(): Failed to enable crypto in D:\fsock_test\ssl_test.php on line 20
Warning: fsockopen(): unable to connect to ssl://last-time-i-checked-this-certificate-expired.darkserv.net:443 (Unknown error) in D:\fsock_test\ssl_test.php on line 20
So it seems that fsock checks the certificate too.
I'm not an expert at all.
I just was curious.
Maybe someone could explain that in more detail so that we can use the one-line fix without having to worry.
Thanks in advance.
Al
__________________