PHP RSA 加密 验签
摘要:
1. 先把pfx转成pem,openssl命令如下: openssl pkcs12 -inKEYSTORE.pfx-outKEYSTORE.pem -nodes 常用openssl的命令可参考这里,建议大家把down下来保存。2. 使用私钥加密,如下:RSA私钥加密$priKeyConten= file_get_contents("abc.pem");$priKey = openssl_get_privatekey($priKeyConten);error_log("私钥=".$priKey."\n", 3, $file_name); 阅读全文
posted @ 2011-10-23 15:06 elm 阅读(587) 评论(0) 推荐(0) 编辑