If you have the curl extension, it can be configured to verify a certificate on connection.
If you have the curl extension, it can be configured to verify a certificate on connection. php.net/manual/en/function.curl-setopt.php // As of writing this, Twitter uses Verisign, Google uses Eqifax $exampleUrl = 'https://twitter. Com/'; // Success $exampleUrl = 'https://google.Com/'; // Fails // create a new CURL resource $ch = curl_init($exampleUrl); // enable verification curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, true); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true); // list of CAs to trust // If the remote site has a specific CA, they usually have a .
Crt // file on their site you can download. Or you can export key items from // some browsers. // In this example, using: Verisign 1 curl_setopt($ch, CURLOPT_CAINFO, __DIR__ .
'/ca_bundle. Crt'); // - or - curl_setopt($ch, CURLOPT_CAPATH, __DIR__ .'/ca_certs/); // If the remote site uses basic auth: curl_setopt($ch, CURLOPT_USERPWD, $username . ':' .
$password); // And a helpful option to enable while debugging //curl_setopt($ch, CURLOPT_VERBOSE, true); // defaults to stdout, don't want that for this case. Curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $page = curl_exec($ch); 1 http://www.verisign.com/support/verisign-intermediate-ca/extended-validation/apache.
Thanks! Sorry for the dumb question. But I don't see how can I test a Url or use as a web service client.
I am really new in to php. :) – Ben Laniado Oct 5 at 14:40 The connection will fail if the server does not provide a valid certificate signed by one of the CAs in the ca_bundle. Crt – rrehbein Oct 5 at 15:36 Thanks for the help!
But, still both the first and the second calls does not issue any warning. And when I do 'var_dump($page)' I get Boolean false. Please help... :) And after that how can I call the server functions?(e.
G, like soap client? ) – Ben Laniado Oct 6 at 9:09.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.