要做ssl,是不是一定要去http://www.verisign.com/网站上注册,购买证书吗?有还没其他方式,谢谢,指导!
------解决方案--------------------
function curlsslrequest( $url,$postfield,$user_agent ){
$ch = curl_init();
curl_setopt($ch, curlopt_post,1);
curl_setopt($ch, curlopt_postfields,$postfield);
curl_setopt($ch, curlopt_url,$url);
curl_setopt($ch, curlopt_ssl_verifyhost,1);
curl_setopt($ch, curlopt_ssl_verifypeer, false);
curl_setopt($ch, curlopt_useragent, $user_agent);
curl_setopt($ch, curlopt_returntransfer,1);
curl_setopt($ch, curlopt_ssl_verifypeer, false); // this line makes it work under https
$result=curl_exec($ch);
curl_close($ch);
return $result;
}
$user_agent = mozilla/4.0 (compatible; msie 5.01; windows nt 5.0);
需要你的服务器打开openssl支持。
------解决方案--------------------
得买证书,
我们公司的商城就是用的ssl,这样看起来权威点.
自己颁发的要是能用,那颁发证书的公司其不是要饿死了.
自己颁发的只能在本地测试用.你打开https的网页浏览器会报当前的证书无效,或失效.你想一下,要是涉及到付款的,谁还敢在你的网站买东西啊
自己要想颁发得用windows 2000 或2003服务器版的系统. xp的没有证书服务.
安装证书服务后,在iis里申请个密匙他会生成在系统盘下.certreq.txt
再到证书服务器里颁发,再到iis里安装就可以了.
