summaryrefslogtreecommitdiffstats
path: root/ipatests/test_ipaclient/data/test_csrgen/scripts/userCert_certutil.sh
blob: 4aaeda07aabd4c36d277e339d0b761f7a8a54baf (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash -e

if [[ $# -lt 1 ]]; then
echo "Usage: $0 <outfile> [<any> <certutil> <args>]"
echo "Called as: $0 $@"
exit 1
fi

CSR="$1"
shift
certutil -R -a -z <(head -c 4096 /dev/urandom) -o "$CSR" -s CN=testuser,O=DOMAIN.EXAMPLE.COM --extSAN email:testuser@example.com "$@"