*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->OpenBSD man pages -> sectok (1)              
Title
Content
Arch
Section
 

SECTOK(1)

Contents


NAME    [Toc]    [Back]

     sectok - communicate with smartcards using iso7816

SYNOPSIS    [Toc]    [Back]

     sectok [-0123] [-f scriptfile] [-s sleeptime]

DESCRIPTION    [Toc]    [Back]

     sectok is a command-line-like  interface  for  communicating
with smartcards.
   APDUs can be sent to the card, and results are displayed. Some
     commands are card-specific, and focus  on  the  Schlumberger
Cyberflex Access
 Javacards.

     The options are as follows:

     -0123   Select port.

     -f scriptfile
             Run commands from scriptfile.

     -s sleeptime
             Set  sleep (in milliseconds) between commands in the
script.

COMMANDS    [Toc]    [Back]

   Non-card commands

     help    List all commands.

     help [command]
             Show help for command.

     ? [command]
             Show help for command.

     reset [-0123ivf]
             Reset smartcard.

             -0123   select port

             -i      don't wait for card insertion

             -v      verbose

             -f      open connection even if atr is bad

     open [-0123ivf]
             Synonym for reset.

     close   Close smartcard connection.

     quit    Quit sectok.

   ISO 7816-4 commands    [Toc]    [Back]

     apdu [-c class] ins p1 p2 p3 data ...
             Send APDU to smartcard.

     fid [-v] fid/aid
             Select file or aid identified by  fid/aid.   fid/aid
can be a numeric
  fid such as 3f00, a two character name, or an
aid in hex or
             ASCII.

     isearch
             Try all 256 possible instructions and print results.

     class [class]
             Inquire or set default application class.

     read [-x] filesize
             Read selected fid and write to stdout.

     write input-filename
             Read  from input-filename and write to selected fid.

     challenge [length]
             Get a random challenge from the card.

     pin [-k keyno] [PIN]
             Verify CHV (PIN).

     chpin [-k keyno]
             Change CHV (PIN).

   Cyberflex commands    [Toc]    [Back]

     ls [-l]
             List all files in current DF.

     acl fid [principal: r1 r2 ...]

             principals
                     world, CHV1, CHV2, AUT0, AUT1,  AUT2,  AUT3,
AUT4

             f_rights
                     r, w, x/a, inval, rehab, dec, inc

             d_rights
                     l, d, a, i, manage

     create fid size

     delete fid

     jdefault [-d]
             Set default applet.

             -d      set default applet to default loader

     jatr    Set java atr.

     jdata   Print useful info about the card

     login [-d] [-k keyno] [-v] [-x hex-aut0]
             "login" (verify AUT0 key)

             -d      use manufacturer's default AUT0 key

     jload  [-p progID] [-c contID] [-s cont_size] [-i inst_size]
[-v] [-a aid]
             filename
             Load an applet to the card.  If the  first  byte  of
the aid is '#'
             it will be converted to 0xfc.

     junload [-p progID] [-c contID]

     jselect [-a aid] [-d]
             Select applet.

             -d      select default loader

     setpass [-d] [-x hex-aut0]

             -d      use manufacturer's default AUT0 key

HISTORY    [Toc]    [Back]

     sectok first appeared in OpenBSD 3.0.

AUTHORS    [Toc]    [Back]

     sectok  was  written by Jim Rees and others at University of
Michigan Center
 for Information Technology Integration (CITI).

OpenBSD     3.6                           July      17,      2001
[ Back ]
 Similar pages
Name OS Title
debconf-communicate Linux communicate with debconf
wm IRIX Communicate with window manager
dslib IRIX communicate with generic SCSI devices
sectok_cardpresent OpenBSD library for communicating with ISO 7816 smartcards
sectok_parse_fname OpenBSD library for communicating with ISO 7816 smartcards
sectok_parse_input OpenBSD library for communicating with ISO 7816 smartcards
sectok_print_sw OpenBSD library for communicating with ISO 7816 smartcards
sectok_reset OpenBSD library for communicating with ISO 7816 smartcards
sectok_selectfile OpenBSD library for communicating with ISO 7816 smartcards
sectok_swOK OpenBSD library for communicating with ISO 7816 smartcards
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service