Hi all. I’m working on writing an interface to display host information on our F5 in our company wiki. I’m trying to set up php to conenct to the f5, and i’m not having much luck.
I followed the php tutorial (http://devcentral.f5.com/Default.aspx?tabid=63&articleType=ArticleView&articleId=69).
Here’s my setup:
- solaris 10 update 3
- php 5.2.4 (has soap installed)
- curl 7.17.0
- httpd 2.2.4
I have not compiled php or apache with ssl support.
Here’s my source code:
require_once 'SOAP/Client.php';
$soapoptions = array('namespace' => 'urn:iControl');
$wsdl_url = 'http://localhost/bigip/iControl/sdk/wsdl/LocalLB.Pool.wsdl';
$proxy_parms = array( 'user' => $username, 'pass' => $password);
$params = array();
$client = new SOAP_Client($wsdl_url, true, '', $proxy_parms );
$client->setOpt('curl', CURLOPT_SSL_VERIFYPEER, 0);
$client->setOpt('curl', CURLOPT_SSL_VERIFYHOST, 0);
$response = $client->call('get_list', $params, $soapoptions);
if (PEAR::isError($response))
{
print "an error occurred in the call: ";
echo $response->message;
}
The error i get when i go to that page is:
curl_exec error 35 error:140943FC:SSL routines:SSL3_READ_BYTES:sslv3 alert bad record mac
WHen i googled, i didn’t find much help. Does anyone know how to fix this? Should i try compiling with ssl support?