curl support for client authentication
Posted: Thu Jun 04, 2009 3:31 am
Hi,
All
I need to fetch monitoring data from a website by logging into it by using curl.It is working fine if client authentication is not enabled. If Client authentication is enabled i am not able to to login into the website .Client authentication in the sense my website is giving access to only the users who have client certificates installed on their machines.
i enabled the following options still in vain
Location of my Root CA certificate is /usr/local/apache/conf/ssl.crt
thanks
prakash
All
I need to fetch monitoring data from a website by logging into it by using curl.It is working fine if client authentication is not enabled. If Client authentication is enabled i am not able to to login into the website .Client authentication in the sense my website is giving access to only the users who have client certificates installed on their machines.
i enabled the following options still in vain
Code: Select all
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, TRUE);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, TRUE);
curl_setopt($curl, CURLOPT_CAPATH,'/usr/local/apache/conf/ssl.crt');
curl_setopt($curl, CURLOPT_CAINFO,'ca.crt');
thanks
prakash