donglaoping9702 2011-08-17 17:21
浏览 167

警告:openssl_pkcs7_sign()[function.openssl-pkcs7-sign]:在第8366行的C:\ xampp \ htdocs \ this \ tcpdf \ tcpdf.php中获取私钥时出错

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

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.

  • 写回答

3条回答 默认 最新

  • duan6161 2011-10-19 15:50
    关注

    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.

    评论

报告相同问题?

悬赏问题

  • ¥20 sub地址DHCP问题
  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办
  • ¥15 kylin启动报错log4j类冲突
  • ¥15 超声波模块测距控制点灯,灯的闪烁很不稳定,经过调试发现测的距离偏大