Solaris Smart Cards Administration Guide

Setting Up a Card Reader

Solaris Smart Cards supports two external card readers, the iButton and the Sun SCRI External Reader 1, and an internal card reader, the Sun SCRI Internal Card Reader 1.

The following table shows the supported card readers and the corresponding values you need to supply to add them: card terminal factory name and reader model name.

Table 3-2 Card Readers Supported

Reader Type 

Card Terminal Factory Name 

Reader Model Name 

Sun SCRI External Card Reader 1

com.sun.opencard.terminal.scm.SCMStc.SCMStcCardTerminalFactory

SunSCRI

iButton

com.ibutton.oc.terminal.jib.iButtonCardTerminalFactory

DS1402

Sun SCRI Internal Card Reader 1 

com.sun.opencard.terminal.scm.SCMI2c.SCMI2cCardTerminalFactory

SunISCRI

Adding a Card Reader (Console)

With the SmartCard Console, you set up a card reader by selecting Card Readers from the Navigation pane. This option lets you:

How to Add a New Card Reader (Console)

See "How to Start the SmartCard Console (Command Line)" for help on starting the SmartCard Console.

  1. (Optional) Ensure that you have already physically attached the external card reader to the system.

    Physically attach the external smart card reader to the serial port, following instructions in the card reader documentation.

  2. Click Card Readers on the Navigation pane.

  3. Double-click Add Reader.

  4. Double-click the type of card reader you want to add.

    The CardReaders: SunCardReader dialog box is displayed.

  5. Select the Basic Configuration folder tab.

  6. Click the down arrow under Device Port.

  7. Click the port that the card reader is attached to.

  8. Click OK.

  9. Restart ocfserv, if prompted.

Viewing or Modifying Card Reader Properties (Console)

The Basic Configuration folder for your card reader includes these properties:

The Advanced Configuration folder contains the card_terminal_factory_name for the card reader, as supplied by the manufacturer. You do not need to change this name unless the manufacturer changes the name for a newer release of the card reader.

How to View or Modify Card Reader Properties (Console)

Use this procedure to view or modify basic properties for your card reader.

  1. Type a unique name for your card reader in the Unique Card Terminal Name field, or accept the default name.

    If you have more than one card reader of the same type attached to the system, you must type a unique card terminal name for each reader.

  2. Type the Model Name for the card reader, only if you are using a newer version of the card reader than the one with the Model Name displayed.

  3. Click on the arrow and select the appropriate device path.

  4. Restart ocfserv, if prompted.

Adding a Card Reader (Command Line)

You add a card reader by using the smartcard -c admin command with the following syntax:

smartcard -c admin -t terminal -j card_terminal_factory_name -x add -d device_pathname -r user_friendly_reader_name -n card_reader_model

-c admin

Indicates that you are viewing or modifying OCF properties. 

-t terminal

Indicates that you are about to configure a card reader. 

-j card_terminal_factory_name

Defines the card terminal factory name of the card reader type. See the specific Card Terminal Factory Name in the procedures below. 

-x add

Indicates that you want to add a card reader. 

-d device_pathname

Specifies the device port where you have plugged in the card reader. 

-r user_friendly_reader_name

Specifies a unique name for the reader. 

-n reader_model_name

Designates the model name of the card reader. See the specific card reader model name in the procedures below. 

Refer to the smartcard(1M) man page for more information.

How to Add an iButton Reader (Command Line)

  1. Become superuser on the system where you are attaching the card reader.

  2. Ensure that you have already physically attached the external card reader to the system.

    Physically attach the external smart card reader to the serial port, following instructions in the card reader documentation.

  3. Add the iButton reader by typing the following command on one line. For example:


    # smartcard -c admin -t terminal 
    -j com.ibutton.oc.terminal.jib.iButtonCardTerminalFactory 
    -x add -d /dev/cua/b -r MyButtonReader -n DS1402
    

    -c admin

    Indicates that you are viewing or modifying OCF properties. 

    -t terminal

    Indicates you are configuring a card reader. 

    -j com.ibutton.oc.terminal.jib.iButtonCardTerminalFactory

    Identifies the card terminal factory name of the iButton reader. 

    Be careful to type the card terminal factory name following -j option exactly as shown in the procedure above, with no spaces or returns between characters.

    -x add

    Indicates that you want to add a card reader. 

    -d /dev/cua/b

    Defines the device port where the card reader is attached. 

    -r MyButtonReader

    Specifies a unique name for the iButton reader. 

    -n DS1402

    Indicates the model name for the iButton card reader. 

  4. Stop ocfserv.


    # pkill ocfserv
    

    The ocfserv process is restarted the next time you use the SmartCard Console or the smartcard command.

How to Add a Sun SCRI External Card Reader 1 (Command Line)

  1. Become superuser on the system where you are attaching the card reader.

  2. Ensure that you have already physically attached the external card reader to the system.

    Physically attach the external smart card reader to the serial port, following instructions in the card reader documentation.

  3. Add the Sun SCRI External Card Reader 1 by typing the following command on one line. For example:


    # smartcard -c admin -t terminal 
    -j com.sun.opencard.terminal.scm.SCMStc.SCMStcCardTerminalFactory 
    -x add -d /dev/cua/b -r MyExternalReader -n SunSCRI
    

    -c admin

    Indicates that you are viewing or modifying OCF properties. 

    -t terminal

    Indicates you are configuring a card reader. 

    -j

    com.sun.opencard.terminal.scm.SCMStc.SCMStcCardTerminalFactory

    Is the card terminal factory name of the Sun SCRI External Card Reader 1. 

    Be careful to type the card terminal factory name following -j option exactly as shown in the procedure above, with no spaces or returns between characters.

    -x add

    Indicates that you want to add a card reader. 

    -d /dev/cua/b

    Defines the device port where the card reader is attached. 

    -r MyExternalReader

    Specifies a unique name for the SCRI External Card Reader 1. 

    -n SunSCRI

    Indicates the model name for the SCRI External Card Reader 1. 

  4. Stop ocfserv.


    # pkill ocfserv
    

    The ocfserv process is restarted the next time you use the SmartCard Console or the smartcard command.

How to Add a Sun SCRI Internal Card Reader 1 (Command Line)

  1. Become superuser on the system where you are attaching the card reader.

  2. Add the Sun SCRI Internal Card Reader 1 by typing the following command on one line. For example:


    # smartcard -c admin -t terminal 
    -j com.sun.opencard.terminal.scm.SCMI2c.SCMI2cCardTerminalFactory 
    -x add -d /dev/scmi2c1 -r MyInternalReader -n SunISCRI
    

    -c admin

    Indicates that you are viewing or modifying OCF properties. 

    -t terminal

    Indicates you are configuring a card reader. 

    -j com.sun.opencard.terminal.scm.SCMI2c.SCMI2cCardTerminalFactory

    Is the card terminal factory name of the Sun SCRI Internal Card Reader 1. 

    Be careful to type the card terminal factory name following -j option exactly as shown in the procedure above, with no spaces or returns between characters.

    -x add

    Indicates that you want to add a card reader. 

    -d /dev/scmi2c1

    Defines the device port where the card reader is attached. For example, /dev/scmi2cn, where n in scmi2cn is the nth SunISCRI reader on the system.

    -r MyInternalReader

    Specifies a unique name for the SCRI Internal Card Reader 1. 

    -n SunISCRI

    Indicates the model name for the SCRI Internal Card Reader 1. 

  3. Stop ocfserv.


    # pkill ocfserv
    

    The ocfserv process is restarted the next time you use the SmartCard Console or the smartcard command.