Sun Java System Web Server 6.1 SP10 Release Notes

Solaris PKCS #11 Support

For web server's SSL subsystem (NSS) to use external PKCS#11 tokens, you have to configure NSS with the modutil command to make it aware of the tokens. The Solaris libpkcs11 softtoken is a PKCS#11 compliant token which can be used with NSS. As an additional benefit on UltraSPARC-T1, systems using the Solaris 10 libpkcs11 task will make use of the platform crypto acceleration support.

Run the modutil command without any arguments for usage information. For example, to add the Solaris 10 libpkcs11 task as a PKCS11 token in NSS.

  1. Ensure that SSL support has been initialized for the web server instances.

  2. Run the following command:

    % modutil -dbdir $ALIASDIR -dbprefix $PREFIX -add libpkcs -libfile /usr/lib/ -mechanisms RSA


    • $ALIASDIR is the path to the alias directory in the install root where the NSS database files are located.

    • $PREFIX is the prefix used by the key3 and cer8 database files in the alias directory and is of the form https-$INSTANCENAME-.

    The -mechanisms flag makes this token the preferred initial provider for the given algorithms.

  3. Run the modutil command without any arguments for a list of all possible mechanisms.

  4. Initialize the libpkcs11 provider's password with pktool.

    % pktool setpin

    For further details on configuring NSS, see the libpkcs11(3LIB), pkcs11_softtoken(5), and pktool(1) man pages. For more information about modutil, see