openssl_pkcs7_sign(): error opening input file vfs://root/temp/

167 views
Skip to first unread message

Helton Marinho

unread,
Feb 19, 2018, 5:40:02 PM2/19/18
to Google App Engine
Im trying to sign a PDF with PHP in Google App Engine standard environment.

When I try to run openssl_pkcs7_sign, the Stackdriver warns that the file could not be found. I have tried using Google Cloud Storage too, but it does not work.

$tempdoc = tempnam(sys_get_temp_dir(), 'tcpdf_43fa8d07af13688a76d62542bae96475_doc_b900c3e9fa55248421a8f2be33b23a29_');
$f = fopen($tempdoc, 'wb');
fwrite($f, 'hi');
fclose($f);
openssl_pkcs7_sign($tempdoc, '-----BEGIN CERTIFICATE-----……', array('-----BEGIN PRIVATE KEY-----….', ''), array(), PKCS7_BINARY | PKCS7_DETACHED);
PHP Warning: openssl_pkcs7_sign(): error opening input file vfs://root/temp/tcpdf_43fa8d07af13688a76d62542bae96475_doc_b900c3e9fa55248421a8f2be33b23a29_5a77beba622c81.38516089!

Any idea?

Kenworth (Google Cloud Platform)

unread,
Feb 19, 2018, 9:33:02 PM2/19/18
to Google App Engine

Hi Helton, a thread like this is off-topic for Google Groups. As it may potentially be a defect on the platform and most likely lead to a specific situation which may require some exchange of project information to reproduce the behavior you described, I highly encourage you to submit a defect report as described in this article so that proper attention and weight will be given to it. We monitor that issue tracker closely.


We look forward to this issue report.

Reply all
Reply to author
Forward
0 new messages