<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:series="http://unfoldingneurons.com/"
> <channel><title>Comments on: PHP, SSL, and cURL SSL3_GET_SERVER_CERTIFICATE&#160;Errors</title> <atom:link href="http://davidwalsh.name/php-ssl-curl-error/feed" rel="self" type="application/rss+xml" /><link>http://davidwalsh.name/php-ssl-curl-error</link> <description>Legendary scribbles about JavaScript, HTML5, AJAX, PHP, CSS, and ∞.</description> <lastBuildDate>Wed, 23 May 2012 19:56:08 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <item><title>By: Koen</title><link>http://davidwalsh.name/php-ssl-curl-error#comment-31795</link> <dc:creator>Koen</dc:creator> <pubDate>Fri, 20 Apr 2012 15:00:16 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=2818#comment-31795</guid> <description>Dear somedude, did you fix your SSL CURL error that you were experiencing with your Facebook app? I&#039;m experiencing the same thing and cannot get it fixed!</description> <content:encoded><![CDATA[<p>Dear somedude, did you fix your SSL CURL error that you were experiencing with your Facebook app? I&#8217;m experiencing the same thing and cannot get it fixed!</p> ]]></content:encoded> </item> <item><title>By: Alfredo</title><link>http://davidwalsh.name/php-ssl-curl-error#comment-31422</link> <dc:creator>Alfredo</dc:creator> <pubDate>Mon, 02 Apr 2012 15:47:12 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=2818#comment-31422</guid> <description>David, thank you for saving me three invaluable hours!</description> <content:encoded><![CDATA[<p>David, thank you for saving me three invaluable hours!</p> ]]></content:encoded> </item> <item><title>By: Weston</title><link>http://davidwalsh.name/php-ssl-curl-error#comment-28655</link> <dc:creator>Weston</dc:creator> <pubDate>Wed, 25 Jan 2012 04:53:44 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=2818#comment-28655</guid> <description>THANKS YOU SOOOOO MUCH.This _did_ save me hours of time!</description> <content:encoded><![CDATA[<p>THANKS YOU SOOOOO MUCH.</p><p>This _did_ save me hours of time!</p> ]]></content:encoded> </item> <item><title>By: Neelesh</title><link>http://davidwalsh.name/php-ssl-curl-error#comment-28575</link> <dc:creator>Neelesh</dc:creator> <pubDate>Thu, 19 Jan 2012 06:06:49 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=2818#comment-28575</guid> <description>Thanks david... But I don&#039;t understand How its working  for common cert file ,that I downloaded from above link..</description> <content:encoded><![CDATA[<p>Thanks david&#8230; But I don&#8217;t understand How its working  for common cert file ,that I downloaded from above link..</p> ]]></content:encoded> </item> <item><title>By: rize</title><link>http://davidwalsh.name/php-ssl-curl-error#comment-26905</link> <dc:creator>rize</dc:creator> <pubDate>Fri, 16 Sep 2011 20:31:08 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=2818#comment-26905</guid> <description>i am getting this now.
error setting certificate verify locations:</description> <content:encoded><![CDATA[<p>i am getting this now.<br
/> error setting certificate verify locations:</p> ]]></content:encoded> </item> <item><title>By: az</title><link>http://davidwalsh.name/php-ssl-curl-error#comment-26729</link> <dc:creator>az</dc:creator> <pubDate>Fri, 26 Aug 2011 19:54:06 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=2818#comment-26729</guid> <description>Very helpful. Thank you!</description> <content:encoded><![CDATA[<p>Very helpful. Thank you!</p> ]]></content:encoded> </item> <item><title>By: Romain</title><link>http://davidwalsh.name/php-ssl-curl-error#comment-23362</link> <dc:creator>Romain</dc:creator> <pubDate>Tue, 05 Apr 2011 17:17:23 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=2818#comment-23362</guid> <description>Dude, you saved my life! ;o)</description> <content:encoded><![CDATA[<p>Dude, you saved my life! ;o)</p> ]]></content:encoded> </item> <item><title>By: samir</title><link>http://davidwalsh.name/php-ssl-curl-error#comment-23306</link> <dc:creator>samir</dc:creator> <pubDate>Tue, 29 Mar 2011 20:18:13 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=2818#comment-23306</guid> <description>My code
&lt;code&gt;
$url =&#039;https://somesecureurl&#039;;
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_TIMEOUT, 60);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
curl_setopt($ch, CURLOPT_VERBOSE, 1);
curl_setopt($ch, CURLOPT_CAINFO, getcwd() . &quot;/cacert.pem&quot;);
&lt;/code&gt;still i cant get the code  to work getting error
&lt;code&gt;
SSL peer certificate or SSH remote key was not OK
&lt;/code&gt;</description> <content:encoded><![CDATA[<p>My code<br
/> <code><br
/> $url ='https://somesecureurl';<br
/> $ch = curl_init($url);<br
/> curl_setopt($ch, CURLOPT_POST, 1);<br
/> curl_setopt($ch, CURLOPT_POSTFIELDS, $data);<br
/> curl_setopt($ch, CURLOPT_TIMEOUT, 60);<br
/> curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);<br
/> curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);<br
/> curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);<br
/> curl_setopt($ch, CURLOPT_VERBOSE, 1);<br
/> curl_setopt($ch, CURLOPT_CAINFO, getcwd() . "/cacert.pem");<br
/> </code></p><p>still i cant get the code  to work getting error<br
/> <code><br
/> SSL peer certificate or SSH remote key was not OK<br
/> </code></p> ]]></content:encoded> </item> <item><title>By: SomeDude</title><link>http://davidwalsh.name/php-ssl-curl-error#comment-22493</link> <dc:creator>SomeDude</dc:creator> <pubDate>Sat, 29 Jan 2011 15:55:40 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=2818#comment-22493</guid> <description>I still can&#039;t get mine to work.  I&#039;m getting this problem with my Facebook app.</description> <content:encoded><![CDATA[<p>I still can&#8217;t get mine to work.  I&#8217;m getting this problem with my Facebook app.</p> ]]></content:encoded> </item> <item><title>By: Bleyder</title><link>http://davidwalsh.name/php-ssl-curl-error#comment-13037</link> <dc:creator>Bleyder</dc:creator> <pubDate>Wed, 28 Oct 2009 23:31:23 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=2818#comment-13037</guid> <description>&quot;Hopefully this will save someone time and frustration in the future.&quot;Yes, it has saved many time to me. There is, however, a point that you don&#039;t explain in your article: where to put the Mozilla&#039;s bundle file? I develop using WAMP, and this is the code I use:curl_setopt($rRequest, CURLOPT_SSL_VERIFYPEER, 1);
curl_setopt($rRequest, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($rRequest, CURLOPT_CAINFO, &quot;C:\path\sub-path\wamp\www\php\mozilla.pem&quot;);The &quot;CURLOPT_SSL_VERIFYHOST&quot; option verify that the name field matches the host name of the server.More information:
&lt;a href=&quot;http://unitstep.net/blog/2009/05/05/using-curl-in-php-to-access-https-ssltls-protected-sites/&quot; title=&quot;Using cURL in PHP to access HTTPS (SSL/TLS) protected sites&quot; rel=&quot;nofollow&quot;&gt;Using cURL in PHP to access HTTPS (SSL/TLS) protected sites&lt;/a&gt;</description> <content:encoded><![CDATA[<p>&#8220;Hopefully this will save someone time and frustration in the future.&#8221;</p><p>Yes, it has saved many time to me. There is, however, a point that you don&#8217;t explain in your article: where to put the Mozilla&#8217;s bundle file? I develop using WAMP, and this is the code I use:</p><p>curl_setopt($rRequest, CURLOPT_SSL_VERIFYPEER, 1);<br
/> curl_setopt($rRequest, CURLOPT_SSL_VERIFYHOST, 2);<br
/> curl_setopt($rRequest, CURLOPT_CAINFO, &#8220;C:\path\sub-path\wamp\www\php\mozilla.pem&#8221;);</p><p>The &#8220;CURLOPT_SSL_VERIFYHOST&#8221; option verify that the name field matches the host name of the server.</p><p>More information:<br
/> <a
href="http://unitstep.net/blog/2009/05/05/using-curl-in-php-to-access-https-ssltls-protected-sites/" title="Using cURL in PHP to access HTTPS (SSL/TLS) protected sites" rel="nofollow">Using cURL in PHP to access HTTPS (SSL/TLS) protected sites</a></p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced (User agent is rejected)
Database Caching 3/7 queries in 0.007 seconds using disk: basic
Object Caching 805/805 objects using disk: basic

Served from: davidwalsh.name @ 2012-05-23 16:49:23 -->
