admin管理员组文章数量:1122846
I have a gift voucher plugin for wordpress that creates a PDF after a user has finished filling in a form and sends it to the users email. This plugin uses the fpdf library to create the pdf.
It worked fine before my web hotel installed OpenSSL/1.0.2g. Now I think that the SSL certificate blocks the pdf creation. I'm getting the following error message:
PHP Warning: fopen(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /wp-content/plugins/gift-voucher-pro/library/fpdf/fpdf.php on line 1259
And the code in fpdf.php on line 1259 is:
protected function _parsepng($file)
{
// Extract info from a PNG file
$f = fopen($file,'rb');
if(!$f)
$this->Error('Can\'t open image file: '.$file);
$info = $this->_parsepngstream($f,$file);
fclose($f);
return $info;
}
My web hotel says that they have done everything correct and that I should contact the author of the plugin. But the author thinks that there is something wrong with the installation of the SSL certificate.
Does anybody here know what can I do about this?
I have a gift voucher plugin for wordpress that creates a PDF after a user has finished filling in a form and sends it to the users email. This plugin uses the fpdf library to create the pdf.
It worked fine before my web hotel installed OpenSSL/1.0.2g. Now I think that the SSL certificate blocks the pdf creation. I'm getting the following error message:
PHP Warning: fopen(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /wp-content/plugins/gift-voucher-pro/library/fpdf/fpdf.php on line 1259
And the code in fpdf.php on line 1259 is:
protected function _parsepng($file)
{
// Extract info from a PNG file
$f = fopen($file,'rb');
if(!$f)
$this->Error('Can\'t open image file: '.$file);
$info = $this->_parsepngstream($f,$file);
fclose($f);
return $info;
}
My web hotel says that they have done everything correct and that I should contact the author of the plugin. But the author thinks that there is something wrong with the installation of the SSL certificate.
Does anybody here know what can I do about this?
Share Improve this question asked Jul 16, 2018 at 6:43 AlexAlex 212 bronze badges 3 |1 Answer
Reset to default 1Problem is solved. It turns out that my web hotel had not installed the correct SSL certificate after all. I'm not excactly sure what they did or did wrong. But the problem is fixed.
本文标签: plugin developmentSSL certificate verify failed
版权声明:本文标题:plugin development - SSL certificate verify failed 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736305513a1932616.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
$file
. you should have something like/var/www/image.png
and nothttps://server/image.png
. – mmm Commented Jul 16, 2018 at 8:42