2. Getting Started With Solaris Smartcard
3. Adding or Removing a Card Reader
To Remove a Card Reader (Console)
This section provides the following procedures:
Refer to the smartcard(1M) man page for other information.
Solaris Smartcard supports an internal card reader, using the IFD handler to configure the reader. Do the following to add an internal card reader from the command line.
The following command provides the status of the service.
% svcs network/rpc/ocfserv
Note - Before you make any changes to Smartcard, you must make sure that the ocfserv daemon is enabled.
# svcadm enable network/rpc/ocfserv
# smartcard -c admin -t terminal -H /usr/lib/smartcard/ifdh_scmi2c.so -x add -d /dev/scmi2c0 -r MyInternalReader -n SunISCRI
Indicates that you are viewing or are modifying OCF properties.
Indicates you are configuring a card reader.
Indicates that you are adding a card reader.
Defines the device port where the card reader is attached. For example, /dev/scmi2cn, where n is the nth Sun Internal Card Reader on the system. Note that no current systems have more than one internal reader, so /dev/scmi2c0 is the only choice now.
Specifies a unique name for the Sun Internal Card Reader.
Indicates the model name for the Sun Internal Card Reader.
# svcadm restart network/rpc/ocfserv
The ocfserv process is restarted the next time you use the Smartcard Console or execute the smartcard command.
Do the following to add an internal card reader from the Solaris Smartcard Console. You have to be root to perform this task.
The following command provides the status of the service.
% svcs network/rpc/ocfserv
Note - Before you make any changes to Smartcard, you must make sure that the ocfserv daemon is enabled.
# svcadm enable network/rpc/ocfserv
Run sdtsmartcardadmin from the command line or select sdtsmartcardadmin from the Workspace menu.
The Add Reader dialog box is displayed.
The Card Readers: IFDTerminal dialog box is displayed, with the Basic Configuration tab selected.
This port is for the internal reader.
This is the full-path location of the IFD handler. The IFD handler for the internal reader is in /usr/lib/smartcard/ifdh_scmi2c.so.
The IFD Terminal is displayed in the Console pane. A dialog box is displayed, stating that the OCF Server must be restarted to complete the operation.
The internal reader is not added until OCF is killed and restarted.
Note - If you do not restart OCF now, you must restart OCF from the command line to add the internal reader.
# svcadm restart network/rpc/ocfserv
The ocfserv process is restarted the next time you start the Smartcard Console or execute the smartcard command.