Using Hardware Crypto Accelerator With Enterprise Server
For the Microsoft Windows environment, add the location of NSS libraries AS_NSS and the NSS tools directory, AS_NSS_BIN to the PATH environment variable. For simplicity, the procedures described in this section use UNIX commands only. You should replace the UNIX variables with the Windows variables, where appropriate.
Configuring the hardware crypto accelerators is divided into two main procedures:
■“Configuring PKCS#11 Tokens” on page 121
■“Configuring J2SE 5.0 PKCS#11 Providers” on page 124
Configuring PKCS#11 Tokens
This section describes how to configure PKCS#11 tokens with the NSS security tool modutil. Use the following procedure to configure a PKCS#11 token.
Enter the following command (all on one line):
modutil
absolute_path_of_pkcs11_library
where, AS_NSS_DB is the NSS database directory (same as AS_DOMAIN_CONFIG when you use the Domain Administration Server (DAS))
For example, to configure a hardware accelerator token, enter the following (all on one line):
modutil
/opt/SUNWconn/crypto/lib/libpkcs11.so
The hardware accelerator in this example is a
The mechanisms must be a complete list of the cryptographic mechanisms that are available in the token. To use just a few of the available cryptographic mechanisms, see “Configuring J2SE
5.0PKCS#11 Providers” on page 124. For a list of all supported mechanisms, see the modutil documentation on the NSS Security Tools site at http://www.mozilla.org/projects/security/pki/nss/tools.
The examples that follow assume that the token name specified at token installation time is mytoken.
To verify that the hardware accelerator is configured properly, enter the following command:
modutil -list -dbdir AS_NSS_DB
The standard output will look similar to the following:
Chapter 9 • Configuring Security | 121 |