Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   TSE von Swissbit: WORM_ERROR_AUTHENTICATION_PIN_BLOCKED (https://www.delphipraxis.net/205084-tse-von-swissbit-worm_error_authentication_pin_blocked.html)

gnuhel 29. Jul 2020 23:49

TSE von Swissbit: WORM_ERROR_AUTHENTICATION_PIN_BLOCKED
 
Hallo, ich habe ein TSE Entwickler USB von Swissbit. Leider bekomme ich beim Factory Reset ein WORM_ERROR_AUTHENTICATION_PIN_BLOCKED.

PUK ändern führt auch zum selben Error.
PIN ändern führt zu WORM_ERROR_NOT_AUTHORIZED
User Login führt zu PUK WORM_ERROR_WRONG_STATE_NEEDS_PUK_CHANGE
Unblock führt zu WORM_ERROR_WRONG_STATE_NEEDS_PIN_CHANGE

Weißt jemand, was man da machen muss?

Danke

bernau 30. Jul 2020 10:22

AW: TSE von Swissbit: WORM_ERROR_AUTHENTICATION_PIN_BLOCKED
 
Zitat:

Zitat von gnuhel (Beitrag 1470766)
Hallo, ich habe ein TSE Entwickler USB von Swissbit. Leider bekomme ich beim Factory Reset ein WORM_ERROR_AUTHENTICATION_PIN_BLOCKED.

PUK ändern führt auch zum selben Error.
PIN ändern führt zu WORM_ERROR_NOT_AUTHORIZED
User Login führt zu PUK WORM_ERROR_WRONG_STATE_NEEDS_PUK_CHANGE
Unblock führt zu WORM_ERROR_WRONG_STATE_NEEDS_PIN_CHANGE

Weißt jemand, was man da machen muss?

Danke

Der Factory Reset ist bereits durchgeführt. Kannst du auch überprüfen mit "worm_info_initializationState".

Nach dem Reset "muss" die PUK und PIN geändert werden, ansonsten kommt die Fehlermeldung WORM_ERROR_WRONG_STATE_NEEDS_PUK_CHANGE

Das machst du am besten mit "worm_tse_setup". Damit wird die TSE initialisiert.

gnuhel 30. Jul 2020 11:17

AW: TSE von Swissbit: WORM_ERROR_AUTHENTICATION_PIN_BLOCKED
 
Hallo Gerd,

Initialization State ist WORM_INITUNINITIALIZED

ich habe versucht eine setup durchzuführen, aber er verlangt dass ich einen SelfTest vorher machen muss.

Wenn ich ein SelfTest aufrufe, dann sagt er mir, dass ich einen ClientId registrieren muss.
Code:
public void tse_runSelfTest(java.lang.String clientId)
Runs the self test of the TSE.

After each power cycle, the TSE runs a self test to ensure proper operation of
its internal modules. The self test requires to check that the TSE is plugged
into an authorized system.

The self test can be repeated whenever it is desired by the ERS, but it
must be run at least once every 25 hours. Otherwise, the TSE will set the
state *selfTestRun* to inactive, which makes all future commands
fail until the self test is run successfully again.
The time until the *selfTestRun* state will be made inactive can be
obtained with WormInformation.timeUntilNextSelfTest().

The self test is a potentially long running operation that might take up to 60
seconds to complete.

Note: This command must be sent as first command after the TSE boots. If it
fails, only methods regarding user authentication, registering new
clients, or re-running the self test are allowed.

Note: It is strongly recommended that after running the self test, any methods
that might be called (e.g. user_login(com.secureflashcard.wormapi.WormUserId, byte[])) are
executed as soon as possible afterwards. Especially, it should be ensured
that tse_updateTime(long)is called quickly after
running the self test to prevent the TSE from entering a low power state.
While having a valid time set, the TSE will not enter the low power state
again.

Parameters:
clientId - Serial number of the system where the TSE is physically
plugged in. Must have been registered previously with
tse_registerClient(java.lang.String), otherwise the self test will
fail.
Wenn ich eine ClientId registrieren will, sagt er mir, dass ich ein SelfTest durchführen muss.
Code:
public void tse_registerClient(java.lang.String clientId)
Registers a client (i.e. an ERS) as a valid system for self tests and
transactions.

A client is identified by its ID, which shall be a unique string (e.g. its
serial number). If the same client is already registered, the command will
be successful, but the client will not be registered twice.

Note: This command requires the user *Admin* to be logged in.
Er dreht sich im Kreis :(

Ist leader in JAVA, aber ich dachte mir, dass vielleicht das Problem such auf Delphi ist.

DeddyH 30. Jul 2020 11:33

AW: TSE von Swissbit: WORM_ERROR_AUTHENTICATION_PIN_BLOCKED
 
Du hast es selbst zitiert:
Zitat:

Note: This command must be sent as first command after the TSE boots. If it
fails, only methods regarding user authentication, registering new
clients, or re-running the self test are allowed.
Ich habe gerade bei mir nachgeschaut: ich versuche den Selbsttest zu starten. Schlägt das mit der entsprechenden Meldung fehl, ändere ich ggf. PINs und PUK, registriere einen Client und versuche es dann noch einmal. Hat bislang immer funktioniert.

gnuhel 30. Jul 2020 12:35

AW: TSE von Swissbit: WORM_ERROR_AUTHENTICATION_PIN_BLOCKED
 
Bei mir dreht er sich immer im Kreis, weißt leider nicht was man noch machen kann.

bernau 30. Jul 2020 14:55

AW: TSE von Swissbit: WORM_ERROR_AUTHENTICATION_PIN_BLOCKED
 
Zitat:

Zitat von gnuhel (Beitrag 1470800)
Hallo Gerd,

Initialization State ist WORM_INITUNINITIALIZED

ich habe versucht eine setup durchzuführen, aber er verlangt dass ich einen SelfTest vorher machen muss.

Wenn ich ein SelfTest aufrufe, dann sagt er mir, dass ich einen ClientId registrieren muss.

Selftest machen und Fehler ignorieren,
Dann setup.

Das sollte klappen.

DeddyH 30. Jul 2020 16:19

AW: TSE von Swissbit: WORM_ERROR_AUTHENTICATION_PIN_BLOCKED
 
Sag ich ja :)

gnuhel 30. Jul 2020 21:20

AW: TSE von Swissbit: WORM_ERROR_AUTHENTICATION_PIN_BLOCKED
 
Danke, ich habe es ausprobiert, SelfTest Error ignoriert, Setup gestartet
Jetzt bekomme ich ein WORM_ERROR_AUTHENTICATION_PIN_BLOCKED :(

bernau 31. Jul 2020 05:23

AW: TSE von Swissbit: WORM_ERROR_AUTHENTICATION_PIN_BLOCKED
 
Zitat:

Zitat von DeddyH (Beitrag 1470838)
Sag ich ja :)

:oops:

DeddyH 31. Jul 2020 05:59

AW: TSE von Swissbit: WORM_ERROR_AUTHENTICATION_PIN_BLOCKED
 
Zitat:

Zitat von gnuhel (Beitrag 1470866)
Danke, ich habe es ausprobiert, SelfTest Error ignoriert, Setup gestartet
Jetzt bekomme ich ein WORM_ERROR_AUTHENTICATION_PIN_BLOCKED :(

Sind das die initialen PINs und die PUK (es gibt Funktionen, um das zu ermitteln)? Falls ja, ändere die mal.

Carsten1975 31. Jul 2020 11:59

AW: TSE von Swissbit: WORM_ERROR_AUTHENTICATION_PIN_BLOCKED
 
Hallo zusammen,

also ich bin auch langsam am verzweifeln.

Ich mache einen factoryReset bekomme als Ergebnis WORM_ERROR_NOERROR zurück und wenn ich dann das Setup ausführen will bekomme ich als Fehler WORM_ERROR_TSE_ALREADY_INITIALIZED zurück.

Wie geht das?

Gruß Carsten

DeddyH 31. Jul 2020 12:02

AW: TSE von Swissbit: WORM_ERROR_AUTHENTICATION_PIN_BLOCKED
 
Handelt es sich denn auch um eine Entwickler-TSE?

Carsten1975 1. Aug 2020 08:40

AW: TSE von Swissbit: WORM_ERROR_AUTHENTICATION_PIN_BLOCKED
 
Ja, es ist eine Entwickler-TSE.

Das interessante ist, wenn ich in VisualStudio 2019 das C# Beispiel nehme, funktioniert der factoryReset, mache ich das selbe in Lazarus funktioniert es nicht. Pin und Puk kann ich aber jederzeit ändern.

Ich mache ein worm_init, danach ein factoryReset und dann bekomme ich eine der möglichen Fehlermeldungen. Das ist wie ein Lottospiel:

WORM_ERROR_WRONG_STATE_NEEDS_SELF_TEST_PASSED
WORM_ERROR_WRONG_STATE_NEEDS_ACTIVE_ERS

himitsu 1. Aug 2020 12:32

AW: TSE von Swissbit: WORM_ERROR_AUTHENTICATION_PIN_BLOCKED
 
API falsch implemmentiert?

Ich denkte da vor allem an ANSI und UTF-8 (im Delphi dagegen an Unicode)

Incocnito 22. Sep 2020 18:38

AW: TSE von Swissbit: WORM_ERROR_AUTHENTICATION_PIN_BLOCKED
 
Ich hatte mich schon gewundert, was NEEDS_ACTIVE_ERS überhaubt sein soll,
dann fiel mir auf:
Code:
  WORM_ERROR_WRONG_STATE_NEEDS_ACTIVE_ERS = $1054,
  WORM_ERROR_WRONG_STATE_NEEDS_SELF_TEST = $1054,
er hatte nur den SelfTest nicht ausgeführt.
Hatte noch einen Fehler, durch welchen er den SelfTest nicht durchgeführt hatte.
Jetzt weiß ich zwar immer noch nicht, was NEEDS_ACTIVE_ERS bedeuten soll,
aber ist erstmal egal, da mein Fehler weg war.

Vielleicht hilft dir diese Erkenntnis auch weiter.
(Falls das Problem überhaupt noch besteht!)

Oder jemand anderen ... ich bin nämlich auf der Suche nach
WORM_ERROR_WRONG_STATE_NEEDS_ACTIVE_ERS überhaubt erst hier her gekommen.


MfG Incocnito

bernau 22. Sep 2020 21:45

AW: TSE von Swissbit: WORM_ERROR_AUTHENTICATION_PIN_BLOCKED
 
Zitat:

Zitat von Incocnito (Beitrag 1474053)
Code:
  WORM_ERROR_WRONG_STATE_NEEDS_ACTIVE_ERS = $1054,
  WORM_ERROR_WRONG_STATE_NEEDS_SELF_TEST = $1054,

Ist es gewollt, dass beide Bezeichner den Wert $1054 haben.

$1054 ist definitiv WORM_ERROR_WRONG_STATE_NEEDS_SELF_TEST

DeddyH 23. Sep 2020 06:03

AW: TSE von Swissbit: WORM_ERROR_AUTHENTICATION_PIN_BLOCKED
 
Ja, die Konstanten stammen aus verschiedenen API-Versionen. Aus Kompatibilitätsgründen hat man die alten Bezeichner einfach dringelassen.


Alle Zeitangaben in WEZ +1. Es ist jetzt 19:40 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz