summaryrefslogtreecommitdiffstats
path: root/scripts/ds-nss-request.sh
blob: 8665f227748055f444ca4e6ec1ae5e83119f9565 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh -x

INSTANCE=pki-tomcat
PASSWORD=Secret123
NSSDB_DIR=/etc/dirsrv/slapd-$INSTANCE

certutil -R \
  -d $NSSDB_DIR \
  -f $NSSDB_DIR/password.txt \
  -s "CN=$HOSTNAME" \
  -g 2048 \
  -z noise.bin \
  -o ds.csr \
  -a