Example: Create a key database
This example shows the command for creating an smkeydatabase:
smkeytool.sh -createDB -password siteminderdb
Example: Add a private key and certificate
This example shows the command to add a private key and certificate to the smkeydatabase. The example assumes you are running the smkeytool from the directory where the certificates and keys are located, as follows:
smkeytool.sh -addPrivkey -password keypswd -alias idp1privkey -keyfile privkey.pkcs8 -certfile sample.crt
If you are not running smkeytool from the directory where the certificates and keys are located, you need to specify the full path to directory where these items are located, as follows:
smkeytool.sh -addPrivkey -alias privkey1 -keyfile "export/ca/siteminder/certs/ sampleprivkey.pkcs8" -certfile "export/ca/siteminder/certs/samplecert.crt"
Example: Add an trusted CA certificate
This example shows the commands required to add a trusted certificate authority certificate:
Important! Before adding a trusted certificate, obtain a CA certificate from a certificate authority.
To add a trusted CA certificate:
smkeytool.sh -listCerts
smkeytool.sh -addCert -alias -sp1cacert -infile /opt/netegrity/siteminder/certs/sampleCARoot.cer -trustcacert
If you do not restart the Policy Server, it takes some time before the Policy Server and key database synchronize. The amount of time for key database to update automatically depends on the configured frequency of database updates. You can configure database updates by adjusting the DBUpdateFrequencyMinutes parameter in the smkeydatabase.properties file.
Copyright © 2010 CA. All rights reserved. | Email CA about this topic |