Open davidsickmiller opened 2 days ago
I found a SO post where someone explained how they built the gpg CLI tool to run on AWS Lambda: https://stackoverflow.com/a/74550493/718475
I see they additionally included libksba and npth, in addition to what bref has here: https://github.com/brefphp/aws-lambda-layers/commit/6fd602b0dd81bd088bffcf4b59a603446d5e60a6#diff-e19f7bc59a823b79d6ff9dccd85f850cfd902c1c1874c1f92ce46a7cf9891a20R40
Those two are also on this list of "Libraries required to build GnuPG": https://www.gnupg.org/software/libraries.html
Maybe we're just missing those two files?
It seems https://github.com/brefphp/extra-php-extensions/issues/443 made progress but did not entirely fix the gnupg extension.
Here's a compact way to reproduce:
serverless.yml:
index.php:
Expected output:
Actual output: