This patch also contains some code changes to make the code easier to test and to make the tests pass. https://fedorahosted.org/freeipa/ticket/4899 Reviewed-By: Jan Cholasta <jcholast@redhat.com>
12 lines
277 B
Bash
12 lines
277 B
Bash
#!/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 "$@"
|