84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
找了一下只找到[SHA1withRSA][1]算法签名,没找到SHA512withRSA的
[SHA1withRSA][1]
SHA512withRSA
走同样的路,发现不同的人生
function sign($data) { $certs = array(); openssl_pkcs12_read(file_get_contents("你的.pfx文件路径"), $certs, "password"); //其中password为你的证书密码 if(!$certs) return ; $signature = ''; openssl_sign($data, $signature, $certs['pkey'],OPENSSL_ALGO_SHA512); return base64_encode($signature); }
OopensSL_Sign 默认 Signature_alg 参数 是 OpenSSL_Algo_Sha1 Signature_alg 其他 参数 OpenSL_Algo_DSS1 (Integer) OpenSL_SHA1 (Integer) ) openssl_algo_sha384 (Integer) opensl_algo_sha512 (Integer) opensl_algo_rmd160 (integer) openssl_algo_md5 (integer ) OPENSSL_ALGO_MD4 (integer) OPENSSL_ALGO_MD2 (integer)参考:http://php.net/manual/en/func...
OopensSL_Sign 默认 Signature_alg 参数 是 OpenSSL_Algo_Sha1
Signature_alg 其他 参数
OpenSL_Algo_DSS1 (Integer)
OpenSL_SHA1 (Integer) )
openssl_algo_sha384 (Integer)
opensl_algo_sha512 (Integer)
opensl_algo_rmd160 (integer)
openssl_algo_md5 (integer )
OPENSSL_ALGO_MD4 (integer)
OPENSSL_ALGO_MD2 (integer)
参考:http://php.net/manual/en/func...