csrgen broke packaging of ipaclient for PyPI. All csrgen related resources are now package data of ipaclient package. Package data is accessed with Jinja's PackageLoader() or through pkg_resources. https://pagure.io/freeipa/issue/6714 Signed-off-by: Christian Heimes <cheimes@redhat.com> Reviewed-By: Ben Lipton <blipton@redhat.com> Reviewed-By: Martin Basti <mbasti@redhat.com>
12 lines
229 B
Cheetah
12 lines
229 B
Cheetah
#!/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" {{ options|join(' ') }} "$@"
|