mirror of
https://gitee.com/zoujingli/WeChatDeveloper.git
synced 2025-11-07 04:02:14 +08:00
#89 增加 file_exists 读取证书文件
This commit is contained in:
parent
5b6b09b955
commit
1443769c52
@ -350,6 +350,9 @@ abstract class BasicAliPay
|
|||||||
*/
|
*/
|
||||||
private function getRootCertSN($sign)
|
private function getRootCertSN($sign)
|
||||||
{
|
{
|
||||||
|
if (strlen($sign) < 500 && file_exists($sign)) {
|
||||||
|
$sign = file_get_contents($sign);
|
||||||
|
}
|
||||||
$sn = null;
|
$sn = null;
|
||||||
$array = explode('-----END CERTIFICATE-----', $sign);
|
$array = explode('-----END CERTIFICATE-----', $sign);
|
||||||
for ($i = 0; $i < count($array) - 1; $i++) {
|
for ($i = 0; $i < count($array) - 1; $i++) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user