Open jeraldpunx opened 3 years ago
help, what is my problem here? I already have openSSL enabled in PHP
help, what is my problem here? I already have openSSL enabled in PHP
Hi,
Can you maybe create (and test) a simple PHP-script with only the following contents?
<?php
$config = array(
"digest_alg" => "sha512",
"private_key_bits" => 2048,
"private_key_type" => OPENSSL_KEYTYPE_RSA,
);
$opensslKeyPair = openssl_pkey_new($config);
Because it looks like it's failing on this part of the script
Check also this installation info of OpenSSL: https://www.php.net/manual/en/openssl.installation.php
I'm still having hardtime. The libcrypto exist already on my apache and php but still not works.
I'm still having hardtime. The libcrypto exist already on my apache and php but still not works.
Is OpenSSL active and enabled in the PHPinfo output? https://php.tutorials24x7.com/blog/how-to-configure-php-openssl-module-on-windows
And is the Window Environment Variable "OPENSSL_CONF" also set to the location of openssl.conf ? https://seegatesite.com/the-steps-how-to-install-openssl-on-xampp-windows/
Steps to reproduce:
What should happen:
Create API Context
What happens:
Fatal error: Uncaught bunq\Exception\BunqException: Generating a new private key failed. See "http://php.net/manual/en/function.openssl-pkey-new.php" for more info. in D:\laragon\www\bunq\vendor\bunq\sdk_php\src\Security\KeyPair.php:66 Stack trace: #0 D:\laragon\www\bunq\vendor\bunq\sdk_php\src\Context\ApiContext.php(187): bunq\Security\KeyPair::generate() #1 D:\laragon\www\bunq\vendor\bunq\sdk_php\src\Context\ApiContext.php(178): bunq\Context\ApiContext->initializeInstallationContext() #2 D:\laragon\www\bunq\vendor\bunq\sdk_php\src\Context\ApiContext.php(119): bunq\Context\ApiContext->initialize('JeraldPC', Array) #3 D:\laragon\www\bunq\index.php(16): bunq\Context\ApiContext::create(Object(bunq\Util\BunqEnumApiEnvironmentType), 'a6785e1ff4f3964...', 'JeraldPC', Array) #4 {main} thrown in D:\laragon\www\bunq\vendor\bunq\sdk_php\src\Security\KeyPair.php on line 66
Traceback
SDK version and environment