omnipay-unionpay icon indicating copy to clipboard operation
omnipay-unionpay copied to clipboard

certId读取问题

Open q707180869 opened this issue 4 years ago • 0 comments

          if (is_file($cert)) {
            $certs = file_get_contents($cert);
        }
       //需要加上这两行才行
       openssl_pkcs12_read($certData, $certs, $pass)
       $cert = $certs['cert'];

        
        $certData = openssl_x509_parse($cert);

        return $certData['serialNumber'];

q707180869 avatar Nov 29 '19 02:11 q707180869