新的证书

This commit is contained in:
2024-12-03 08:28:15 +08:00
parent ee766c7e64
commit 1a85804762
2 changed files with 2 additions and 2 deletions

View File

@@ -116,7 +116,7 @@ JJvBfLfudYNUjUCyW3gAcOIJ
'customerCode' => '562795004029322', //商户号
'signNo' => '562795004029322004', //证书序列号
'password' => '907883', // 证书密码
'rsaPrivateKeyFilePath' => '/www/certs/user.pfx', //私钥文件路径
'rsaPrivateKeyFilePath' => '/www/certs/user-rsa.pfx', //私钥文件路径
'publicKeyFilePath' => '/www/certs/EFPS-PublicKey.cer', //公钥
'signType' => 'RSA2',
'pay_notify_url' => 'https://app.xiaokang88.com/member/v1/eplpay-callback/notify',

View File

@@ -189,7 +189,7 @@ class EplPayService
openssl_pkcs12_read(file_get_contents($this->eplConfig['rsaPrivateKeyFilePath']), $certs, $this->eplConfig['password']); //其中password为你的证书密码
if(!$certs){
throw new Exception('请检查RSA私钥配置');
throw new Exception('请检查RSA私钥配置'. openssl_error_string());
}
openssl_sign($data, $sign, $certs['pkey'], OPENSSL_ALGO_SHA256);