警告:openssl_pkcs7_sign()[function.openssl-pkcs7-sign]:错误在第8366行的C:\ xampp \ htdocs \ this \ tcpdf \ tcpdf.php中获取私钥 [英] Warning: openssl_pkcs7_sign() [function.openssl-pkcs7-sign]: error getting private key in C:\xampp\htdocs\this\tcpdf\tcpdf.php on line 8366

查看:80
本文介绍了警告:openssl_pkcs7_sign()[function.openssl-pkcs7-sign]:错误在第8366行的C:\ xampp \ htdocs \ this \ tcpdf \ tcpdf.php中获取私钥的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用TCPDF签名PDF,但是运行示例52 时,我得到了此错误:

I am using TCPDF to sign PDF, but when running the example 52 I got this error:

Warning: openssl_pkcs7_sign() [function.openssl-pkcs7-sign]: error getting 
private key in C:\xampp\htdocs\this\tcpdf\tcpdf.php on line 8366

您能告诉我还是指导我哪里出了问题.我只是在运行示例而未做任何更改.我正在使用xampp.

Could you please tell me or guide me where is the problem. I am just running the example without changing anything. I am using xampp.

推荐答案

问题出在试图访问私钥的位置.而不是像其示例中的``''那样使用'file://'.(dirname( FILE )).'./path/to/file'.这对我有用.

The problem is with the location from where it tries to access the private key. Instead of '' like in their example use 'file://'.( dirname(FILE)).'./path/to/file'. This worked for me.

这篇关于警告:openssl_pkcs7_sign()[function.openssl-pkcs7-sign]:错误在第8366行的C:\ xampp \ htdocs \ this \ tcpdf \ tcpdf.php中获取私钥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆