$ctx = stream_context_create(array("ssl" => array("local_cert" => $MYCERT,/* If the certificate we are providing was passphrase encoded, we need to set it here */"passphrase" => "My Passphrase for the local_cert",