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(), 
$f = fopen($tempdoc, 'wb');
fwrite($f, 'hi');
openssl_pkcs7_sign($tempdoc, '-----BEGIN CERTIFICATE-----……', 
array('-----BEGIN PRIVATE KEY-----….', ''), array(), PKCS7_BINARY | 
PHP Warning: openssl_pkcs7_sign(): error opening input file 

Any idea?

You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
To post to this group, send email to
Visit this group at
To view this discussion on the web visit
For more options, visit
  • [google-appengine... Helton Marinho

Reply via email to