Annotation of src/usr.bin/sectok/sectok.1, Revision 1.1
1.1 ! rees 1: .\" $OpenBSD: cd.1,v 1.9 2000/10/26 00:37:02 aaron Exp $
! 2: .\"
! 3: .\" copyright 1997, 2000
! 4: .\" the regents of the university of michigan
! 5: .\" all rights reserved
! 6: .\"
! 7: .\" permission is granted to use, copy, create derivative works
! 8: .\" and redistribute this software and such derivative works
! 9: .\" for any purpose, so long as the name of the university of
! 10: .\" michigan is not used in any advertising or publicity
! 11: .\" pertaining to the use or distribution of this software
! 12: .\" without specific, written prior authorization. if the
! 13: .\" above copyright notice or any other identification of the
! 14: .\" university of michigan is included in any copy of any
! 15: .\" portion of this software, then the disclaimer below must
! 16: .\" also be included.
! 17: .\"
! 18: .\" this software is provided as is, without representation
! 19: .\" from the university of michigan as to its fitness for any
! 20: .\" purpose, and without warranty by the university of
! 21: .\" michigan of any kind, either express or implied, including
! 22: .\" without limitation the implied warranties of
! 23: .\" merchantability and fitness for a particular purpose. the
! 24: .\" regents of the university of michigan shall not be liable
! 25: .\" for any damages, including special, indirect, incidental, or
! 26: .\" consequential damages, with respect to any claim arising
! 27: .\" out of or in connection with the use of the software, even
! 28: .\" if it has been or is hereafter advised of the possibility of
! 29: .\" such damages.
! 30:
! 31: .Dd January 10, 2001
! 32: .Dt PAY 1
! 33: .Os
! 34: .Sh NAME
! 35: .Nm pay
! 36: .Nd communicate with smartcards using iso7816
! 37: .Sh SYNOPSIS
! 38: .Nm pay
! 39: .Ar [-ht]
! 40: .Sh DESCRIPTION
! 41: .Nm
! 42: is a command-line-like interface for communicating with smartcards. APDU's () can be sent to the card, and results are displayed. Some commands are card-specific, and focus on the Schlumberger Cyberflex Access Javacards, as that is one of CITI's most commonly used cards.
! 43:
! 44: The
! 45: .Nm
! 46: options are as follows:
! 47:
! 48: -h watch for card removal.
! 49: .Nm
! 50: alerts user of this event
! 51:
! 52: -t change the ATR timeout of a card. Many cards do not conform to the ISO specs, and use varying lengths of ATR timeouts.
! 53:
! 54:
! 55: The
! 56: .Nm
! 57: commands are as follows:
! 58:
! 59: 1/2 - number of port to which smartcard reader is attached also calls reset (and accepts same modifiers) modifers: t -
! 60:
! 61: r - issue a reset to the card
! 62: modifers: v - verbose
! 63: f - force open
! 64: i - return immediately if there is no card in the reader
! 65:
! 66: C - set the instruction class
! 67:
! 68: f - select or open a file
! 69: options: / - select root file (30 00)
! 70: <byte>.<byte>
! 71: <byte> <byte> - select file designated by
! 72: these two bytes
! 73:
! 74: g - stat currently selected file
! 75:
! 76: ?/h - display the help screen
! 77: option: command you want help on
! 78:
! 79: i/o/b - send an 'in/out/in-out' command
! 80: requires ins, p1, p2, p3
! 81: options: c - allows you to specify class byte
! 82:
! 83: T - send T=1 I block and get reply
! 84: options: S - send R/S block
! 85:
! 86: I - find instructions
! 87:
! 88: j - Cyberflex: Verify AUT0
! 89: options:
! 90: r - reset to default loader
! 91: s - set selected app as default
! 92: a - fix broken java atr
! 93: x - list files in selected DF
! 94: l - download applet (.bin)
! 95: options -p program FID, -c instance directory FID,
! 96: -s data directory size, -i data container size,
! 97: -a applet AID
! 98: u - unload applet
! 99: options -p program ID, -c instance directory FID,
! 100: -a applet AID
! 101: p - select applet
! 102: -a applet AID
! 103: q - select default loader as current
! 104: k - load DES key (Usage: jk number_of_keys)
! 105: R - load RSA private key
! 106:
! 107: s - Sm@rt Cafe:
! 108: l - download applet (.CAP)
! 109:
! 110: R - read file
! 111: R filesize
! 112:
! 113: W - write file
! 114: W <filename>
! 115:
! 116: x - explore (similar to unix `ls`)
! 117:
! 118: c - dump file contents
! 119:
! 120: e - eject
! 121:
! 122: q - quit