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
With the SmartCard Console, you set up a card reader by selecting Card Readers from the Navigation pane. This option lets you:
Add a new card reader
View and modify properties set up for an already a previously configured card reader
See "How to Start the SmartCard Console (Command Line)" for help on starting the SmartCard Console.
(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.
Click Card Readers on the Navigation pane.
Double-click Add Reader.
Double-click the type of card reader you want to add.
The CardReaders: SunCardReader dialog box is displayed.
Select the Basic Configuration folder tab.
Click the down arrow under Device Port.
Click the port that the card reader is attached to.
Click OK.
Restart ocfserv, if prompted.
The Basic Configuration folder for your card reader includes these properties:
Unique Card Terminal Name - Contains a unique name to identify the card reader (called the user_friendly_reader name in the command-line procedures for adding a card reader)
Model Name - Contains the manufacturer's model name for the card reader you selected from the Add Reader dialog box (called the card_reader_model name in Table 3-2)
Device Port - Contains the fully-qualified device name for the port where the reader is attached, for example /dev/cua/b for serial port b
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.
Use this procedure to view or modify basic properties for your card reader.
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.
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.
Click on the arrow and select the appropriate device path.
Restart ocfserv, if prompted.
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.
Become superuser on the system where you are attaching the card reader.
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.
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. |
Stop ocfserv.
# pkill ocfserv |
The ocfserv process is restarted the next time you use the SmartCard Console or the smartcard command.
Become superuser on the system where you are attaching the card reader.
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.
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. |
Stop ocfserv.
# pkill ocfserv |
The ocfserv process is restarted the next time you use the SmartCard Console or the smartcard command.
Become superuser on the system where you are attaching the card reader.
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. |
Stop ocfserv.
# pkill ocfserv |
The ocfserv process is restarted the next time you use the SmartCard Console or the smartcard command.