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hfil+cX65fwF/SX+Rf9l8ACG8abyxvPm9Qb2JvdG+GbwCYb6pvvG/Ob+Bv8m8EfxZ/ACh/On9Mf15/cH+Cf5R/pn8AuH/Kf9x/7n8AjxKPJI82jwBIj1qPbI9+j5CPoo+0j8aPANiP6o/8jw6fIJ8yn0SfVp8AaJ96n4yfnp+wn8Kf1J/mnwD4nwqvHK8ur0CvUq9kr3avAIivmq+sr76v0K/ioQ</item>
    </list>
</obj>

我找到了以下stackoverflow帖子,并尝试按照他们的解决方案:

不幸的是,没有任何作用。

我试过用:

openssl_pkcs7_sign(): error getting private key.

Undefined offset: 1 in ..\tcpdf\tcpdf.php on line 7604

或手写绝对路径。

我的脚本是从项目根路径执行的,$certificate = "file://" . getcwd() . "/objects/dummy_cert.cert"; $certificate = "file://" . __DIR__ "/objects/dummy_cert.cert"; 所在的下一个文件夹。

这里发生了什么,我该如何解决这个问题?

我甚至记录了$ certificate的内容,以确保它生成正确的路径。生成的路径会复制到Google Chrome地址栏中,会立即加载.cert文件的内容。

1 个答案:

答案 0 :(得分:1)

您需要&#39;文件://&#39;前缀和文件的实际路径:

//in your case
$certificate = 'file://'.realpath('/objects/dummy_cert.cert');
// OR for other cases
$certificate = 'file://'.realpath('../upper_folder/objects/dummy_cert.cert');
// OR
$certificate = 'file://'.realpath('C:/objects/dummy_cert.cert');