Enable Banking use of environment variables #11891
Replies: 6 comments 20 replies
-
|
Hello, I "reopen" previous discussion because I have the same error. But what i get is the following error:
I modified file PEM (as @JC5 guide) removing returns and adding two \n I'm using Unraid OS Thank you very much Federico |
Beta Was this translation helpful? Give feedback.
-
|
I searched a lot online, but I can't find a working solution. I'm thinking about a new command option: docker exec -it $(docker ps -aqf "name=Firefly-III-Data-Importer") php artisan importer:import /import/config.json /import/enable-banking.pem What do you think? Thank you. |
Beta Was this translation helpful? Give feedback.
-
|
This unfortunately seems to also be my issue, as SOPS(-nix, where I keep all my homelab passwords in) doesn't seem to support newlines??? Very strange, and it seems like the resolving PR is not really going to get merged anytime soon. A solution I saw floating online was to encode the key into a base64, store that as an environment variable, then decode it as needed. That would make things a lot easier for the end user, but that would be on JC5/contributors to determine if it's actually implementable or not. |
Beta Was this translation helpful? Give feedback.
-
|
Hello, I encountered the same problem when I tried to enter my Enable Banking private key in my Docker Compose file. I followed the instructions in the documentation to add a \n after “-----BEGIN PRIVATE KEY-----” and a second one before “-----END PRIVATE KEY-----,” but it never worked. Looking at the import code, I saw that it was PHP and that you could directly provide a file using <?php
declare(strict_types=1);
return [
'application_id' => env('ENABLE_BANKING_APP_ID', ''),
'private_key' => env('ENABLE_BANKING_PRIVATE_KEY', ''),
'url' => env('ENABLE_BANKING_URL', 'https://api.enablebanking.com'),
'countries' => require __DIR__.'/shared/countries.php',
'unique_column_options' => [
'external-id' => 'External identifier',
],
];So you just have to set Is it possible to add this to the documentation @JC5 ? |
Beta Was this translation helpful? Give feedback.
-
|
Ok I updated importer, but still not working. Key is correctly loaded, but return this error: Before trying auto import, I created a new config.json with docker develop-20260309. Federico |
Beta Was this translation helpful? Give feedback.
-
|
Good Evening @JC5, today i have a new problem. |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
When I try to use the Enable Banking via Importer using environment variables I always get this error:
local.ERROR: OpenSSL unable to validate key {"exception":"[object] (DomainException(code: 0): OpenSSL unable to validate key at /var/www/html/vendor/firebase/php-jwt/src/JWT.php:269)I tried to put the PEM file in one line, replacing all enters with '\n' and I also tried to mount the PEM file and point the ENABLE_BANKING_PRIVATE_KEY to the file location, but I always get the 500 internal error with the logs showing the error I pointed in the beginning.
I am able to proceed if I do not use the environment variable and I fill the form (OPTION B of the tutorial)...
Do you think you could give an example in the tutorial how to mount the file and use the ENABLE_BANKING_PRIVATE_KEY variable pointing to that location?
Thank you,
Originally posted by @ZeluisFS in #11733
Beta Was this translation helpful? Give feedback.
All reactions