mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2025-01-03 05:02:18 +00:00
94122d7bec
use a fake openssl for abuild-keykey and pre-generate the abuild keys. This makes tests run significantly faster as we dont need to generate new keys for each abuild-keygen test.
30 lines
322 B
Bash
Executable File
30 lines
322 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# fake openssl
|
|
while [ $# -gt 0 ]; do
|
|
case "$1" in
|
|
genrsa|rsa)
|
|
cmd="$1"
|
|
;;
|
|
-out)
|
|
shift
|
|
outfile="$1"
|
|
;;
|
|
-in)
|
|
shift
|
|
infile="$1"
|
|
esac
|
|
shift
|
|
done
|
|
|
|
case "$cmd" in
|
|
genrsa)
|
|
cat "$FAKEKEY" > "$outfile"
|
|
;;
|
|
rsa)
|
|
echo "writing RSA key" >&2
|
|
cat "$FAKEKEYPUB" > "$outfile"
|
|
;;
|
|
esac
|
|
|