bnw / firefly-iii-fints-importer

Import financial transactions from you FinTS enabled bank into Firefly III.
GNU Affero General Public License v3.0
143 stars 21 forks source link

HBCI-Hash key #96

Open rockyale opened 1 year ago

rockyale commented 1 year ago

I tried this SW with DKB (works really well) and with Commerzbank. However Commerzbank requires activation of HASH generated by finance software (RIPEMD-160 or SAH-160) in order to activate it in their tools. (see here: https://service.commerzbank.de/wie-schalte-ich-die-hbci-signatur-den-schluessel-frei/) I assume this feature is not available in this importer?

bnw commented 1 year ago

The importer uses the following library: https://github.com/nemiah/phpFinTS

There has been some discussion there on getting Commerzbank to work. In particular see here:

Bitte beachten Sie, dass die Kommunikationsadresse für das PIN/TAN Verfahren eine andere ist, als die für das HBCI mit elektronischer Signatur.

Could you try out if this works for you?

DerSpezialist commented 6 months ago

Commerzbank does support FinTS (https://www.commerzbank.de/service/wie-lautet-die-kommunikationsadresse-fuer-hbci-ebics/), but you have to apply for the HBCI stuff (https://www.commerzbank.de/konten-zahlungsverkehr/service/hbci-finanzmanagement/) and activate the TAN method by telephone.

I did that but it still does not work.

I get the following errors when i try to use the Importer:

Warning: Undefined array key 999 in /vendor/nemiah/php-fints/lib/Fhp/FinTs.php on line 534

Fatal error: Uncaught Fhp\Protocol\ServerException: FinTS errors: 9050 (global): Die Nachricht enthält Fehler. 9800 (global): Dialog abgebrochen 9340 (global): Unbekannte oder unzulässige Signatur. FinTS warnings: 3920 (wrt seg 3): Zugelassene Ein- und Zwei-Schritt-Verfahren für den Benutzer. [999, 900] in /vendor/nemiah/php-fints/lib/Fhp/Protocol/ServerException.php:170 Stack trace: #0 /vendor/nemiah/php-fints/lib/Fhp/FinTs.php(963): Fhp\Protocol\ServerException::detectAndThrowErrors(Object(Fhp\Protocol\Message), Object(Fhp\Protocol\Message)) #1 /vendor/nemiah/php-fints/lib/Fhp/FinTs.php(379): Fhp\FinTs->sendMessage(Object(Fhp\Protocol\Message)) #2 /app/TanHandler.php(39): Fhp\FinTs->submitTan(Object(Fhp\Protocol\DialogInitialization), '0979560') #3 /app/TanHandler.php(31): App\TanHandler->create_or_continue_action() #4 /app/Login.php(21): App\TanHandler->__construct(Object(Closure), 'login-action', Object(Symfony\Component\HttpFoundation\Session\Session), Object(Twig\Environment), Object(Fhp\FinTs), Object(App\Step), Object(Symfony\Component\HttpFoundation\Request)) #5 /app/index.php(59): App\StepFunction\Login() #6 {main} thrown in /vendor/nemiah/php-fints/lib/Fhp/Protocol/ServerException.php on line 170

In the mentioned phpFinTS library they theoretically did implement a fix for that (https://github.com/nemiah/phpFinTS/pull/409). I deployed the Importer via the prebuilt Dockerhub Image. Is the library automatically updated when i redeploy the Docker container?

LnLcFlx commented 2 months ago

I'm getting the same error