Sun Directory Server Enterprise Edition 7.0 Installation Guide

ProcedureTo Use Directory Proxy Server With Cryptographic Hardware on a Solaris 10 System

  1. Stop Directory Proxy Server.

    $ dpadm stop /local/dps
  2. Turn off the certificate database password storage.

    $ dpadm set-flags /local/dps cert-pwd-prompt=on
    Choose the certificate database password:
    Confirm the certificate database password:
  3. Set the PIN used to access the cryptographic framework by typing the pktool setpin command.

    Use the same password that you typedwhen turning off the certificate database password storage.

  4. Generate a key pair by using the cryptographic framework as the key store.

    $ keytool -genkeypair -alias defaultDPScert
     -dname "ou=dps server,dc=example,dc=com" -keyalg RSA -sigalg MD5withRSA
     -validity 3652 -storetype PKCS11 -keystore NONE -storepass pin-password

    pin-password is the password that you set as the PIN with the pktool setpin command.

  5. Edit the Directory Proxy Server configuration file, adding the following attributes to the base entry, cn=config.

    serverCertificateNickName: defaultDPScert
    certificateKeyStore: NONE
    certificateKeyStoreType: PKCS11
  6. Start Directory Proxy Server.

    $ dpadm start /local/dps