Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Openssl error #1740

Closed
giagara opened this issue Feb 10, 2024 · 2 comments
Closed

Openssl error #1740

giagara opened this issue Feb 10, 2024 · 2 comments
Labels

Comments

@giagara
Copy link

giagara commented Feb 10, 2024

Description:

I've deployed a simple function to create a key pair, using spatie/crypto.
When i call the function openssl_pkey_new i get false instead of a OpenSSLAsymmetricKey

How to reproduce:

  • install bref
  • install spatie/crypto
  • call [$privateKey, $publicKey] = (new KeyPair())->generate();
  • get the error

I'm using docker with this command:

docker run --rm -it --entrypoint= -v $(PWD):/var/task:ro bref/php-82:2 vendor/bin/bref-local index.php

The complete error catched with openssl_error_string() is:

error:FFFFFFFF80000002:system library::No such file or directory
error:10000080:BIO routines::no such file
error:07000072:configuration file routines::no such file
error:FFFFFFFF80000002:system library::No such file or directory
error:10000080:BIO routines::no such file
error:07000072:configuration file routines::no such file
@giagara giagara added the bug label Feb 10, 2024
@mnapoli
Copy link
Member

mnapoli commented Feb 10, 2024

FYI this might be related to brefphp/aws-lambda-layers#154

@giagara
Copy link
Author

giagara commented Feb 10, 2024

FYI this might be related to brefphp/aws-lambda-layers#154

yes: as a workaround i see that using phpseclib the keys are getting generated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants