<?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/"
		>
<channel>
	<title>《配置windows下的curl来获取https页面内容》的评论</title>
	<atom:link href="http://618119.com/archives/2007/10/26/16.html/feed" rel="self" type="application/rss+xml" />
	<link>http://618119.com/archives/2007/10/26/16.html</link>
	<description>工作,生活,Android,前端,Linode,Ubuntu,nginx,java,apache,tomcat,Resin,mina,Hessian,XMPP,RPC</description>
	<lastBuildDate>Thu, 02 Feb 2012 03:34:08 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>作者：lizongbo</title>
		<link>http://618119.com/archives/2007/10/26/16.html#comment-4497</link>
		<dc:creator>lizongbo</dc:creator>
		<pubDate>Mon, 13 Dec 2010 06:17:27 +0000</pubDate>
		<guid isPermaLink="false">http://618119.com/archives/2007/10/26/16.html#comment-4497</guid>
		<description>你可以找一台Linux的服务器，然后从上面复制一个文件来直接诶使用，通常路径是/usr/share/curl/curl-ca-bundle.crt，将这个文件复制到curl.exe所在的目录即可。
比如我的是：D:\Programs\curl\bin,然后再运行curl命令即可：

没有curl-ca-bundle.crt之前：
D:\Programs\curl\bin&gt;curl https://www.google.com
curl: (60) SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify faile
d
More details here: http://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a &quot;bundle&quot;
 of Certificate Authority (CA) public keys (CA certs). The default
 bundle is named curl-ca-bundle.crt; you can specify an alternate file
 using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
 the bundle, the certificate verification probably failed due to a
 problem with the certificate (it might be expired, or the name might
 not match the domain name in the URL).
If you&#039;d like to turn off curl&#039;s verification of the certificate, use
 the -k (or --insecure) option.

有了D:\Programs\curl\bin\curl-ca-bundle.crt之后：
D:\Programs\curl\bin&gt;curl https://www.google.com
302 Moved
The document has moved here

文件已经发到你的邮箱，请查收。</description>
		<content:encoded><![CDATA[<p>你可以找一台Linux的服务器，然后从上面复制一个文件来直接诶使用，通常路径是/usr/share/curl/curl-ca-bundle.crt，将这个文件复制到curl.exe所在的目录即可。<br />
比如我的是：D:\Programs\curl\bin,然后再运行curl命令即可：</p>
<p>没有curl-ca-bundle.crt之前：<br />
D:\Programs\curl\bin&gt;curl <a href="https://www.google.com" rel="nofollow">https://www.google.com</a><br />
curl: (60) SSL certificate problem, verify that the CA cert is OK. Details:<br />
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify faile<br />
d<br />
More details here: <a href="http://curl.haxx.se/docs/sslcerts.html" rel="nofollow">http://curl.haxx.se/docs/sslcerts.html</a></p>
<p>curl performs SSL certificate verification by default, using a &#8220;bundle&#8221;<br />
 of Certificate Authority (CA) public keys (CA certs). The default<br />
 bundle is named curl-ca-bundle.crt; you can specify an alternate file<br />
 using the &#8211;cacert option.<br />
If this HTTPS server uses a certificate signed by a CA represented in<br />
 the bundle, the certificate verification probably failed due to a<br />
 problem with the certificate (it might be expired, or the name might<br />
 not match the domain name in the URL).<br />
If you&#8217;d like to turn off curl&#8217;s verification of the certificate, use<br />
 the -k (or &#8211;insecure) option.</p>
<p>有了D:\Programs\curl\bin\curl-ca-bundle.crt之后：<br />
D:\Programs\curl\bin&gt;curl <a href="https://www.google.com" rel="nofollow">https://www.google.com</a><br />
302 Moved<br />
The document has moved here</p>
<p>文件已经发到你的邮箱，请查收。</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：mclkyo</title>
		<link>http://618119.com/archives/2007/10/26/16.html#comment-4495</link>
		<dc:creator>mclkyo</dc:creator>
		<pubDate>Mon, 13 Dec 2010 02:57:39 +0000</pubDate>
		<guid isPermaLink="false">http://618119.com/archives/2007/10/26/16.html#comment-4495</guid>
		<description>D:\Programs\curl-7.17.0&gt;curl https://618119.com/
curl: (60) SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify faile
d

像这样子的报的错误是什么原因呢？希望指点一二，谢谢</description>
		<content:encoded><![CDATA[<p>D:\Programs\curl-7.17.0&gt;curl <a href="https://618119.com/" rel="nofollow">https://618119.com/</a><br />
curl: (60) SSL certificate problem, verify that the CA cert is OK. Details:<br />
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify faile<br />
d</p>
<p>像这样子的报的错误是什么原因呢？希望指点一二，谢谢</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：lizongbo</title>
		<link>http://618119.com/archives/2007/10/26/16.html#comment-3306</link>
		<dc:creator>lizongbo</dc:creator>
		<pubDate>Sun, 15 Feb 2009 06:40:20 +0000</pubDate>
		<guid isPermaLink="false">http://618119.com/archives/2007/10/26/16.html#comment-3306</guid>
		<description>嗯，确实这样，不知道是wordpress还是其插件做了什么处理，
一些url也替换成了escaped_anchor这样的东西，我懒得处理了。</description>
		<content:encoded><![CDATA[<p>嗯，确实这样，不知道是wordpress还是其插件做了什么处理，<br />
一些url也替换成了escaped_anchor这样的东西，我懒得处理了。</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：jqk</title>
		<link>http://618119.com/archives/2007/10/26/16.html#comment-3305</link>
		<dc:creator>jqk</dc:creator>
		<pubDate>Fri, 13 Feb 2009 04:31:50 +0000</pubDate>
		<guid isPermaLink="false">http://618119.com/archives/2007/10/26/16.html#comment-3305</guid>
		<description>发现这个blog程序对发的消息有改动.
连续两个减号（英文字符）
－－
会被改为 一个减号！！！
－

－－cacert ca.crt
这样写才是正确的参数。　但不能复制。你需要输入英文字符的减号。喝喝。</description>
		<content:encoded><![CDATA[<p>发现这个blog程序对发的消息有改动.<br />
连续两个减号（英文字符）<br />
－－<br />
会被改为 一个减号！！！<br />
－</p>
<p>－－cacert ca.crt<br />
这样写才是正确的参数。　但不能复制。你需要输入英文字符的减号。喝喝。</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：jqk</title>
		<link>http://618119.com/archives/2007/10/26/16.html#comment-3304</link>
		<dc:creator>jqk</dc:creator>
		<pubDate>Fri, 13 Feb 2009 04:29:41 +0000</pubDate>
		<guid isPermaLink="false">http://618119.com/archives/2007/10/26/16.html#comment-3304</guid>
		<description>非常感谢.我总是感觉自己在加密和认证这里基础知识不过关!

我试了windows下的curl 是好用的.我的命令行里不是这个参数.
-cacert ca.crt 查了一下 help应该是这个参数.
--cacert ca.crt
linux下的help里也是这个参数. 但我没有实际进行测试.

再次感觉.  8-)</description>
		<content:encoded><![CDATA[<p>非常感谢.我总是感觉自己在加密和认证这里基础知识不过关!</p>
<p>我试了windows下的curl 是好用的.我的命令行里不是这个参数.<br />
-cacert ca.crt 查了一下 help应该是这个参数.<br />
&#8211;cacert ca.crt<br />
linux下的help里也是这个参数. 但我没有实际进行测试.</p>
<p>再次感觉.  8-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：goffee</title>
		<link>http://618119.com/archives/2007/10/26/16.html#comment-3301</link>
		<dc:creator>goffee</dc:creator>
		<pubDate>Fri, 09 Jan 2009 08:23:03 +0000</pubDate>
		<guid isPermaLink="false">http://618119.com/archives/2007/10/26/16.html#comment-3301</guid>
		<description>谢谢。我再从这方面继续查找下。</description>
		<content:encoded><![CDATA[<p>谢谢。我再从这方面继续查找下。</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：lizongbo</title>
		<link>http://618119.com/archives/2007/10/26/16.html#comment-3300</link>
		<dc:creator>lizongbo</dc:creator>
		<pubDate>Thu, 08 Jan 2009 14:34:28 +0000</pubDate>
		<guid isPermaLink="false">http://618119.com/archives/2007/10/26/16.html#comment-3300</guid>
		<description>不好意思，我没在linux下试过，不过原理应该都是一样的，即导入配置客户端和服务端都可以信任的根证书。</description>
		<content:encoded><![CDATA[<p>不好意思，我没在linux下试过，不过原理应该都是一样的，即导入配置客户端和服务端都可以信任的根证书。</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：goffee</title>
		<link>http://618119.com/archives/2007/10/26/16.html#comment-3299</link>
		<dc:creator>goffee</dc:creator>
		<pubDate>Thu, 08 Jan 2009 08:09:10 +0000</pubDate>
		<guid isPermaLink="false">http://618119.com/archives/2007/10/26/16.html#comment-3299</guid>
		<description>你好，
我在linux下使用curl也出现了问题。
问题如下：
在linux或winodws浏览器运行含有curl的php文件是正常的（所谓得前台运行）。但是在linux后台用php命令执行相同得php文件却一直报“段错误”。在测试中，发现只有https的地址才会出现此问题，http则正常运行的。
服务器得配置是:
redhat linux AS4
TOMCAT5.5
APACHE2.0.59
PHP5.2.6
希望能得到你得帮助。谢谢。</description>
		<content:encoded><![CDATA[<p>你好，<br />
我在linux下使用curl也出现了问题。<br />
问题如下：<br />
在linux或winodws浏览器运行含有curl的php文件是正常的（所谓得前台运行）。但是在linux后台用php命令执行相同得php文件却一直报“段错误”。在测试中，发现只有https的地址才会出现此问题，http则正常运行的。<br />
服务器得配置是:<br />
redhat linux AS4<br />
TOMCAT5.5<br />
APACHE2.0.59<br />
PHP5.2.6<br />
希望能得到你得帮助。谢谢。</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：lizongbo</title>
		<link>http://618119.com/archives/2007/10/26/16.html#comment-5</link>
		<dc:creator>lizongbo</dc:creator>
		<pubDate>Tue, 27 Nov 2007 04:47:29 +0000</pubDate>
		<guid isPermaLink="false">http://618119.com/archives/2007/10/26/16.html#comment-5</guid>
		<description>to lw:
你需要找到网站证书的根证书,并且导出成crt文件,才能使用–cacert ca.crt 这样的参数.
而这个文件,除了系统内置的,其余的通常需要到 ca机构的网站去下载,
例如szca的根证书下载页面为:　http://www.szca.gov.cn:8081/jsp/web/Certificate.do

我没有你的那种环境,我所测试的根证书也是我自己生成的,所以无法判断其它环境下的具体原因.</description>
		<content:encoded><![CDATA[<p>to lw:<br />
你需要找到网站证书的根证书,并且导出成crt文件,才能使用–cacert ca.crt 这样的参数.<br />
而这个文件,除了系统内置的,其余的通常需要到 ca机构的网站去下载,<br />
例如szca的根证书下载页面为:　http://www.szca.gov.cn:8081/jsp/web/Certificate.do</p>
<p>我没有你的那种环境,我所测试的根证书也是我自己生成的,所以无法判断其它环境下的具体原因.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

