Skip to content

GnuCash - DKB Konto via aqbanking und FinTS einrichten

Mein Tag bestand heute darin ein DKB Konto mit Hilfe von AqBanking einzurichten.

Im Jahr 2026 benötigt man FinTS und DKP-App Tan dafür.

Die DKB-LLM war, wie so üblich, massiv überfordert. Das Internet hat leider auch wenig gutes zu bieten.

Am Ende war es eine Mischung aus dem offiziellen Wiki und einem Firefly-III DKB Setup, was mir geholfen und mich auf den richtige Weg gebracht hat.

Was war das Problem?

Es gab keinen Bestätigung in der DKB-App, wenn ich den Nutzer via aqbanking hinzugefügt habe. Die Lösung war, dass man im Tan-Verfahren explizit den Gerätenamen angibt. Den Gerätenamen findet man in der DKB-App unter dem Klickpfad: Profil -> App-Einstellungen -> Verknüpfte-Geräte -> Hautgerät.

Nachfolgend die Schritte für die Kommandozeile.

# ref: https://www.aquamaniac.de/rdm/projects/aqbanking/wiki/SetupPinTan#DKB
# ref: https://github.com/devfaz/firefly-iii-dkb
LOGIN="<int: login_number>_<string: 'p|c'>"
NAME="Firstname Lastname"   # DKB-App: Profil -> Mein Profil -> Name

aqhbci-tool4 adduser -t pintan --context=1 -b 12030000 -u ${LOGIN} -s "https://fints.dkb.de/fints" -N "${NAME}" --hbciversion=300
aqhbci-tool4 listusers

USER_ID=3
# Zertifikat prüfen und bestätigen
aqhbci-tool4 getbankinfo -u "${USER_ID}"
aqhbci-tool4 getsysid -u "${USER_ID}"
# Passwort für PIN eingegeben
aqhbci-tool4 listitanmodes -u "${USER_ID}"
aqhbci-tool4 setitanmode -u "${USER_ID}" -m 7940 # DKB-App Tan-Mode
TAN_DEVICE_NAME="DKB-App (<string: device_name>)" # DKB-App: Profil -> App-Einstellungen -> Verknüpfte-Geräte -> Hautgerät
# aqhbci-tool4 setTanMediumId -u "${USER_ID}" -m "${TAN_DEVICE_NAME}"
aqhbci-tool4 getaccounts -u "${USER_ID}"
aqhbci-tool4 listaccounts -v

# Pin-Datei erstellen

aqhbci-tool4 mkpinlist > ~/.aqbanking/pinfile
chmod 0400 ~/.aqbanking/pinfile
-P ~/.aqbanking/pinfile

Danach kann man die entsprechenden bequem in GnuCash hinzufügen und auch abrufen (Aktionen -> Online Aktionen -> Abfrage Kontoumsätze ...).

Trackbacks

No Trackbacks

Comments

Display comments as Linear | Threaded

No comments

The author does not allow comments to this entry

Add Comment

E-Mail addresses will not be displayed and will only be used for E-Mail notifications.
To leave a comment you must approve it via e-mail, which will be sent to your address after submission.

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

Markdown format allowed
Form options