print "\nIf you've got this far without errors then problem is with your SSL config\n"; $calocns=openssl_get_cert_locations(); if (count($calocns)) { print "Check you've got your cacerts deployed in one of the following locations\n"; foreach ($calocns as $k=>$v) print "$k = $v\n"; } else { print "You've not configured your openssl installation on this host\n"; }
print "\nIf all good so far, then this bit should work....\n"; print "fsockopen\n"; var_dump(fsockopen("ssl://smtp.gmail.com", 465, $errno, $errstr, 3.0)); var_dump($errno); var_dump($errstr);
If you've got this far without errors then problem is with your SSL config Check you've got your cacerts deployed in one of the following locations default_cert_file = /opt/alt/openssl11/etc/pki/tls/cert.pem default_cert_file_env = SSL_CERT_FILE default_cert_dir = /opt/alt/openssl11/etc/pki/tls/certs default_cert_dir_env = SSL_CERT_DIR default_private_dir = /opt/alt/openssl11/etc/pki/tls/private default_default_cert_area = /opt/alt/openssl11/etc/pki/tls ini_cafile = ini_capath =