Use this if you want to connect to HTTPS that is self-signed SSL certificates.

$context = stream_context_create();
stream_context_set_option($context, "ssl", "allow_self_signed", true);
stream_context_set_option($context, "ssl", "verify_peer", false);

This is for placing in front of pfsockopen and fsockopen.

comments powered by Disqus