Created
April 2, 2012 12:58
-
-
Save silv3rm00n/2283275 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this works : | |
$ curl -k --cert mag.pem:abcd https://something | |
php code does not work : | |
<?php | |
$url = "https://something"; | |
// Create a stream | |
$opts = array( | |
'ssl' => array( | |
'local_cert' => 'mag.pem' , | |
'passphrase' => 'abcd' , | |
) , | |
); | |
$context = stream_context_create($opts); | |
$content = file_get_contents( $url , false, $context); | |
echo $content; | |
it says : | |
HTTP Error 403.7 - Forbidden: SSL client certificate is required.<br>Internet Information Services (IIS) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment