1 2 3 4 5 6
#!/bin/sh -x INSTANCE=pki-tomcat NSSDB_DIR=/etc/dirsrv/slapd-$INSTANCE certutil -K -d $NSSDB_DIR -f $NSSDB_DIR/password.txt