general TCOS question

Stefan Krümmel Dr_Oken@stw-bonn.de
Sat Sep 14 12:26:02 2002


Hi,
i'm having some problems with my Netkey/TCOS 2.0.3 cards:

when i try to delete the default files on my netkey card with
opensc-explorer-wk, i only get error messages that say it'Äs not allowed.

eg:

  #### opensc-explorer log start ####

  #>opensc-explorer
  OpenSC Explorer version 0.6.1-wk-20020415
  Connecting to card in reader CT-API
  /usr/local/towitoko/lib/libtowitoko.so, port1...
  Using card driver: TCOS 2.0 cards

  OpenSC [3F00]>ver CHV0 04:05:06:07:08:09:11
  Code correct.
  OpenSC [3F00]> cd df02
  OpenSC [3F00/DF02]> ls
  iso7816.c:88:iso7816_check_sw: File not found (red color)
  FileID Type Size
   448E   wEF  26
   648F   wEF  10
   5083   wEF  18
   5080   wEF  18
   474F   wEF   8

  OpenSC [3F00/DF02]> del 448e
  card-tcos.c:65:tcos_check_sw: Command not allowed (red color)
  card.c:487:sc_delete_file: returning with: Unknown reply from Smartcard
  DELETE FILE failed: Unknown reply from Smartcard

  OpenSC [3F00/DF02]> del 648f
  [same errmsg]

  OpenSC [3F00/DF02]> del 648f
  [same errmsg]

  OpenSC [3F00/DF02]> del 5083
  [same errmsg]

  OpenSC [3F00/DF02]> del 5080
  [same errmsg]

  OpenSC [3F00/DF02]> del 474f
  [same errmsg]

  OpenSC [3F00/DF02]> quit   *grrrr*

  #### opensc-explorer log end ####


  so what is my basic error that i can't delete any files at will after a
  successfull authenication with CHV0 with is already changed from nullpin
  to my preferred value.


  another problem is that i can't access the CHV3,
  Werner mentioned that i could change it with CHV0,
  but the EF_pinadmin(5003) can only be changed if u know CHV3 ;-((
  like KF_NKS2000_20.pdf says in paragraph 4.3.2.4, so what can i do..?

  TIA
  Stefan