关于php应用ssl证书的问题 需求是用php对客户端进行ssl证书签发,然后可以读取客户端证书,验证用户身份。希望各位大神帮帮忙!! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 没有人能帮忙吗?我自己写了个代买如下:$CAcrt = "file://D:/ca.crt";$CAkey = array("file://D:/ca.key", "123456");$clientKeys = openssl_pkey_new();$dn = array( "countryName" => "CN", "stateOrProvinceName" => "BJ", "localityName" => "BeiJing", "organizationName" => "test", "organizationalUnitName" => "test", "commonName" => "test", "emailAddress" => "[email protected]");$csr = openssl_csr_new($dn, $clientPrivKey);$configArgs = array("x509_extensions" => "v3_req");$cert = openssl_csr_sign($csr, $CAcrt, $CAkey, 365);openssl_x509_export_to_file($cert, "childCert.crt");但是总出现错误Warning: openssl_csr_sign(): cannot get CSR from parameter 1 估计应该是openssl_csr_new()这个函数没有产生证书,应该怎么解决啊? 是少了配置文件参数config吗?我试着加进去也是这个问题,不知道是不是需要把openssl.cnf文件内部参数修改一下 php如何上传文件 【PHP程序员】重庆 招聘有经验PHP程序员 寻求PHP程序员进行网站开发任务 常用正则表达式 thinkphp框架 php 5.3.5版本 安装pear 双击 go-pear.bat 报错下 msnp15 获取好友列表时 返回301错误码 与大家分享我的第一个开源项目 PHP解析XML后排序问题?请看代码?请高手光顾!急……在线等候 谁有能方便编辑表格的在线编辑器,谢谢啊 【求助】有谁用Yii做过博客或其它项目,有的话麻烦发到我QQ邮箱 php连接数据库问题
$CAkey = array("file://D:/ca.key", "123456");
$clientKeys = openssl_pkey_new();
$dn = array(
"countryName" => "CN",
"stateOrProvinceName" => "BJ",
"localityName" => "BeiJing",
"organizationName" => "test",
"organizationalUnitName" => "test",
"commonName" => "test",
"emailAddress" => "[email protected]"
);
$csr = openssl_csr_new($dn, $clientPrivKey);
$configArgs = array("x509_extensions" => "v3_req");
$cert = openssl_csr_sign($csr, $CAcrt, $CAkey, 365);
openssl_x509_export_to_file($cert, "childCert.crt");但是总出现错误Warning: openssl_csr_sign(): cannot get CSR from parameter 1
估计应该是openssl_csr_new()这个函数没有产生证书,应该怎么解决啊?