2. Getting Started With Solaris Smartcard
Starting the Smartcard Console
To Start the Smartcard Console From the Command Line
To Start the Smartcard Console From the CDE Desktop
Setting Up for Smartcard Login
To Add a Card Reader (Console)
To Add Support for a New Card Type (Console)
To Add Support for a New Card Type (Command Line)
To Load the Smartcard Applet to a Smart Card (Console)
To Load the Smartcard Applet to a Smart Card (Command Line)
To Set Up a User Profile (Console)
To Set Up a User Profile (Command Line)
To Verify a PIN for a Smart Card
To Change the PIN on a Card (Console)
Setting Timeout and Card Removal Actions
To Set Smartcard Timeouts (Console)
To Set Card Removal Options (Console)
Use the following procedure to set up Smartcard login for a machine that is running Solaris 8, Solaris 9, or Solaris 10 OS. For some tasks, a command-line example is shown first, followed by Smartcard Console instructions. For some complex tasks, the command-line example is a link to another chapter.
Note - You must be root to perform most of these tasks.
Instructions for adding a card reader from the Smartcard Console are shown here.
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 and IFD Terminal icons are displayed in the Console pane. Icons for any other enabled card reader types are also displayed.
The Add Reader dialog box is displayed. You can also display the Add Reader dialog box by selecting Add Reader in the Console pane and choosing Properties in the Action menu.
The Card-Readers dialog box is displayed.
This tab is selected by default.
Leave the current name if you do not want to change the name. Do not include any spaces in the name.
The Sun Internal Card Reader is attached to /dev/scmi2c0 by default.
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 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 issue the smartcard command.
For command-line instructions, see Adding a Card Reader.
To use a new type of smart card, you have to provide its Answer to Reset (ATR) property to ocfserv. The following is Smartcard Console instructions.
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
The Smart Card dialog box displays a list of the known ATRs for this card type. You can also display the Smart Card dialog box by selecting the appropriate card in the Console pane and choosing Properties in the Action menu.
The Add ATR dialog box is displayed. The ATR of the card inserted in the card reader is shown in the Inserted Card's ATR listbox.
Note - To determine if the ATR value of the inserted card has been registered, click the Add button. If nothing is listed, your card's ATR is already known. Otherwise, you should perform the following steps.
You can find the new ATR value in the smart-card product literature.
The new ATR is added to the list in the Smart Card dialog box.
If you prefer the command line, use this procedure.
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 -x modify "PayFlex.ATR=3B69000057100A9 3B6911000000010100 12345"
Note - If you want to retain the current ATR, you must enter the current ATR and the new ATR.
Use this procedure to load the Solaris Smartcard applet (SolarisAuthApplet) to a smart card. You must load the Solaris Smartcard applet before you can add the user profile information. The following is Smartcard Console instructions.
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
The Load Applets dialog box is displayed. Applets for various card types are displayed in the left listbox. You can also display the Load Applets dialog box by selecting the appropriate card in the Console pane and choosing Properties in the Action menu.
Choices include the following:
CyberFlex
iButton
PayFlex
The selected applet is copied to the Pending Applet Installations listbox, with a check in the checkbox and the name of the smart card displayed. If no card or the wrong smart card is inserted in the card reader, “No compatible devices inserted” is displayed. Insert the appropriate card.
A window that is labeled “Loading Applet to Device” is displayed. The applet loads in approximately one minute. When the installation is complete, a window displays the confirmation message “Applet Installation Successful.”
The card now stores default values. If the card previously stored different PIN or different user profile values, those values have been overwritten. See PIN Property and User and Password Properties for more information.
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 load -i /usr/share/lib/smartcard/SolarisAuthApplet.capx
When the load finishes, the following message is displayed:
Operation successful.
Use this procedure to specify the user name and password that is associated with the application (dtlogin) for the card being set up. The following is Smartcard Console instructions.
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
The icon for the type of card in the reader is displayed in the Console pane.
The Configure Applets dialog box is displayed. You can also display the Configure Applets dialog box by selecting the icon in the Console pane and choosing Properties in the Action menu.
The SolarisAuthApplet configuration folders appear on the right side of the dialog box. The folders are represented by tabs labeled “PIN” and “User Profiles.” For some smart cards, “RSA Key” and “PKI Cert” folders might also be represented. Only User Profiles changes are described here. See To Change the PIN on a Card (Console) for PIN change information.
The name is the user name of the person to use the card. The user name cannot be more than eight characters long.
Note - Click the Get button to determine the current user name that is associated with the card. You need to type the PIN to get the current user name or to change the user name or password.
The password is the password that is associated with the user name that was typed in a previous step. The password must correspond to the user's password based on the search order for passwd in /etc/nsswitch.conf: LDAP, NIS, NIS+, or local files. The password cannot be more than eight characters long.
Note - If the user's password is changed after you have configured the smart card, you or the user must repeat these steps. The new password on the smart card is not updated automatically.
The Set User Profile popup is displayed, asking for the current PIN.
The new user name and new password are stored on the card.
If you prefer the command line, use the following procedure.
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
Type the following on one line to set the user name to x and the password to y for the dtlogin application. In this example, the PIN is $$$$java, the default value.
# smartcard -c init -A A0000000620304000 -P '$$$$java' user=x password=y application=dtlogin
Note - You must type the loaded applet ID and the current PIN. In the previous example, -A A000000062030400 specifies the SolarisAuthApplet applet ID. The PIN is the default SolarisAuthApplet value. Enclose the PIN, $$$$java, or any PIN that contains the shell special characters—such as $—within single quotes. Otherwise, the shell tries to interpret the PIN as a variable, and the command fails.
For more information, see To Create User Information on a Smart Card (Command Line).
Use this procedure to verify the PIN for a smart card.
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 init -A A000000062030400 -P 'PIN_number'
PIN_number represents the PIN set for the card and A000000062030400 is the applet ID for the SolarisAuthApplet.
If the PIN is invalid, an Invalid PIN message is displayed. A valid PIN results in no output.
Use this procedure to change the PIN on a smart card by using the Smartcard Console.
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
The icon for the type of card in the reader is displayed in the Console pane.
The Configure Applets dialog box is displayed.
The SolarisAuthApplet configuration folders appear on the right side of the dialog box. The folders are represented by tabs that are labeled “PIN” and “User Profiles.” For some smart cards, “RSA Key” and “PKI Cert” might also appear. Only PIN change is described here.
A PIN can contain up to eight characters.
A popup window that is labeled “Change PIN” is displayed.
The default PIN, loaded on the card when the SolarisAuthApplet was installed on the card, is $$$$java.
If you prefer the command line, use the following procedure.
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 init -A A000000062030400 -P '$$$$java' pin=001234
Note - You must type the loaded applet ID and the current PIN. In the previous example, -A A000000062030400 specifies the SolarisAuthApplet applet ID (aid) and the PIN is the default SolarisAuthApplet value. Be sure to type the new PIN correctly because you are not prompted to confirm the new PIN. Enclose the PIN, $$$$java, or any PIN that contains shell special characters—such as $—within single quotes. Otherwise, the shell tries to interpret the PIN as a variable, and the command fails.
Use this procedure to enable Solaris Smartcard on a system by using the Smartcard Console. The following must be done on each system that uses Smartcard authentication. For detailed information about Solaris Smartcard commands, see the following man pages:
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
The Desktop icon is displayed in the Console pane.
The Configure Clients dialog box is displayed.
The supported smart cards are listed in the listbox at the left.
As soon as you click OK in the Configure Clients dialog box, Smartcard is activated. You must have a working card reader on the system and a smart card configured with your user name and password.
Solaris Smartcard is now enabled on the system.
If you do not know the PIN on the card, you are locked out of the system. If you cannot access your system because of Smartcard, issue a rlogin to the system and disable Smartcard. See To Disable Smartcard.
You can disable Smartcard from the Configure Clients dialog box. Select the radio button that is labeled “Deactivate Desktop's Smart Card Capabilities” and click OK.