Skip to content

Instantly share code, notes, and snippets.

@silv3rm00n
Created March 30, 2012 07:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save silv3rm00n/2248450 to your computer and use it in GitHub Desktop.
Save silv3rm00n/2248450 to your computer and use it in GitHub Desktop.
$opts = array(
'ssl' => array(
'local_cert' => "./mkaas.cer" ,
'passphrase' => 'password' ,
) ,
);
$context = stream_context_create($opts);
// Open the file using the HTTP headers set above
$content = file_get_contents( $url , false, $context);
echo $content;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment