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

keycard - pair failed invalid card cryptogram #17115

Open
3esmit opened this issue Jan 22, 2025 · 0 comments
Open

keycard - pair failed invalid card cryptogram #17115

3esmit opened this issue Jan 22, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@3esmit
Copy link
Member

3esmit commented Jan 22, 2025

Bug Report

Description

I exported the private data folder from iOS Status Mobile and put it on the data folder from Status Desktop. When I try to login on my keycard, it gives keycard - pair failed invalid card cryptogram in the logs. I tested the code with keycard-cli and it works.

accounts.sql contains the keycardPairing in the base64, with the first digit as the pairing index (which in the case is 1).

This keycard is an older version.

Please, don't ask me to start a brand new account with my seedphrase, I know I can do that.
I know this is an unusual situation, but I am debugging a migration problem which happened on Status Mobile, and I would like to see if I can use the database in Status Destkop, and maybe fix the dirty database, use it in Desktop and than import it back to Status Mobile.
Related issue: status-im/status-mobile#20996

Steps to reproduce

Not sure

Expected behavior

Actual behavior

Additional Information

  • Status desktop version: 2.32.0
  • Operating System: MacOS
./Status.app/Contents/MacOS/nim_status_client --LOG_LEVEL=DEBUG
INF 2025-01-22 17:26:38.942Z app info                                   topics="status-app" tid=1924859 file=nim_status_client.nim:246 version=2.32.0 commit=e7a5b6702 currentDateTime=2025-01-22T14:26:38-03:00
INF 2025-01-22 17:26:38.942Z starting application controller...         topics="status-app" tid=1924859 file=nim_status_client.nim:248
INF 2025-01-22 17:26:39.932Z starting application...                    topics="status-app" tid=1924859 file=nim_status_client.nim:251
WRN 2025-01-22 17:26:39.937Z Error decoding signal                      topics="signals-manager" tid=1924859 file=signals_manager.nim:49 err="Unknown signal received: mediaserver.started"
DBG 2025-01-22 17:26:39.937Z [threadpool task thread] initiating task   topics="task-threadpool" tid=1924881 file=threadpool.nim:56 messageType=AsyncAddCentralizedMetricIfEnabledTaskArg:ObjectType threadid=1924881 task="{\"$type\":\"AsyncAddCentralizedMetricIfEnabledTaskArg:ObjectType\",\"eventName\":\"navigation\",\"eventValueJson\":\"{\\\"viewId\\\":\\\"LoginKeycardEnterPassword\\\",\\\"flowType\\\":\\\"AppLogin\\\"}\",\"vptr\":105553143279488,\"slot\":\"onCentralizedMetricAddedIdEnabled\"}"
DBG 2025-01-22 17:26:39.938Z Add metric for                             tid=1924881 file=async_tasks.nim:21 eventName=navigation eventValueJson="{\"viewId\":\"LoginKeycardEnterPassword\",\"flowType\":\"AppLogin\"}"
DBG 2025-01-22 17:26:40.079Z qt message                                 topics="qt" tid=1924859 text=StatusApplicationDelegate::applicationDidFinishLaunching file=:0 category=default
DBG 2025-01-22 17:26:40.081Z onCentralizedMetricAddedIdEnabled          topics="metrics" tid=1924859 file=service.nim:66 metricId=05a7c14e-16e6-46fd-bc9e-823cb60ffdcd
2025-01-22 14:26:40.102 nim_status_client[85780:1924859] +[IMKClient subclass]: chose IMKClient_Modern
2025-01-22 14:26:40.102 nim_status_client[85780:1924859] +[IMKInputSession subclass]: chose IMKInputSession_Modern
WRN 2025-01-22 17:26:41.508Z qt warning                                 topics="qt" tid=1924859 text="QQuickItem::stackBefore: Cannot stack AccountMenuItemPanel_QMLTYPE_271(0x600002e92b50, parent=0x6000023b24c0, geometry=0,0 342x64) before QQuickRepeater(0x600002edc370, name = \"LoginView_AccountsRepeater\"), which must be a sibling" file=:0 category=default
DBG 2025-01-22 17:26:41.522Z qt message                                 topics="qt" tid=1924980 text="Network Cache Dir:  \"/Users/ricardoshirakiin/Library/Application Support/Status/tmp/netcache\"" file=:0 category=default
WRN 2025-01-22 17:26:46.296Z qt warning                                 topics="qt" tid=1924859 text="libpng warning: iCCP: known incorrect sRGB profile" file=:0 category=default
DBG 2025-01-22 17:26:46.299Z [threadpool task thread] initiating task   topics="task-threadpool" tid=1924876 file=threadpool.nim:56 messageType=AsyncAddCentralizedMetricIfEnabledTaskArg:ObjectType threadid=1924876 task="{\"$type\":\"AsyncAddCentralizedMetricIfEnabledTaskArg:ObjectType\",\"eventName\":\"navigation\",\"eventValueJson\":\"{\\\"viewId\\\":\\\"Login\\\",\\\"flowType\\\":\\\"AppLogin\\\"}\",\"vptr\":105553143279488,\"slot\":\"onCentralizedMetricAddedIdEnabled\"}"
DBG 2025-01-22 17:26:46.299Z Add metric for                             tid=1924876 file=async_tasks.nim:21 eventName=navigation eventValueJson="{\"viewId\":\"Login\",\"flowType\":\"AppLogin\"}"
DBG 2025-01-22 17:26:46.307Z onCentralizedMetricAddedIdEnabled          topics="metrics" tid=1924859 file=service.nim:66 metricId=a98e394e-7267-4d59-a40e-4a01494d7c8f
keycard - listing readers
keycard - waiting for card
keycard - card found at index 0
keycard - using reader ACS ACR39U ICC Reader
keycard - card protocol T1
keycard - pair failed invalid card cryptogram
DBG 2025-01-22 17:26:46.734Z on_keycard_response                        topics="app-controller" tid=1924859 file=module.nim:469 currFlow=AppLogin currState=Login
DBG 2025-01-22 17:26:48.370Z secondary_action                           topics="app-controller" tid=1924859 file=module.nim:211 currFlow=AppLogin currState=Login
DBG 2025-01-22 17:26:48.377Z secondary_action - set state               topics="app-controller" tid=1924859 file=module.nim:217 setCurrFlow=AppLogin setCurrState=LoginKeycardEnterPin
DBG 2025-01-22 17:26:48.377Z [threadpool task thread] initiating task   topics="task-threadpool" tid=1924878 file=threadpool.nim:56 messageType=AsyncAddCentralizedMetricIfEnabledTaskArg:ObjectType threadid=1924878 task="{\"$type\":\"AsyncAddCentralizedMetricIfEnabledTaskArg:ObjectType\",\"eventName\":\"navigation\",\"eventValueJson\":\"{\\\"viewId\\\":\\\"LoginKeycardEnterPin\\\",\\\"flowType\\\":\\\"AppLogin\\\"}\",\"vptr\":105553143279488,\"slot\":\"onCentralizedMetricAddedIdEnabled\"}"
DBG 2025-01-22 17:26:48.378Z Add metric for                             tid=1924878 file=async_tasks.nim:21 eventName=navigation eventValueJson="{\"viewId\":\"LoginKeycardEnterPin\",\"flowType\":\"AppLogin\"}"
DBG 2025-01-22 17:26:48.378Z onCentralizedMetricAddedIdEnabled          topics="metrics" tid=1924859 file=service.nim:66 metricId=fa0874ea-a3bc-4924-9699-38ce699915e1
DBG 2025-01-22 17:27:05.975Z primary_action                             topics="app-controller" tid=1924859 file=module.nim:198 currFlow=AppLogin currState=LoginKeycardEnterPin
DBG 2025-01-22 17:27:09.403Z primary_action                             topics="app-controller" tid=1924859 file=module.nim:198 currFlow=AppLogin currState=LoginKeycardEnterPin
DBG 2025-01-22 17:27:12.371Z primary_action                             topics="app-controller" tid=1924859 file=module.nim:198 currFlow=AppLogin currState=LoginKeycardEnterPin
DBG 2025-01-22 17:27:12.923Z primary_action                             topics="app-controller" tid=1924859 file=module.nim:198 currFlow=AppLogin currState=LoginKeycardEnterPin
DBG 2025-01-22 17:27:13.370Z primary_action                             topics="app-controller" tid=1924859 file=module.nim:198 currFlow=AppLogin currState=LoginKeycardEnterPin
DBG 2025-01-22 17:27:14.230Z primary_action                             topics="app-controller" tid=1924859 file=module.nim:198 currFlow=AppLogin currState=LoginKeycardEnterPin
keycard - pair failed invalid card cryptogram
DBG 2025-01-22 17:27:14.383Z on_keycard_response                        topics="app-controller" tid=1924859 file=module.nim:469 currFlow=AppLogin currState=LoginKeycardEnterPin
@3esmit 3esmit added the bug Something isn't working label Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

1 participant