From: Sebastian Harl Date: Wed, 25 Feb 2015 09:20:35 +0000 (+0100) Subject: integration/test_lib.sh: Store the CA serial in $TESTDIR. X-Git-Tag: sysdb-0.8.0~167 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6d8389c7e3f2bad7ffd21c132451a8ee2c4bda8a;p=sysdb.git integration/test_lib.sh: Store the CA serial in $TESTDIR. --- diff --git a/t/integration/test_lib.sh b/t/integration/test_lib.sh index e3a2092..1fb3324 100644 --- a/t/integration/test_lib.sh +++ b/t/integration/test_lib.sh @@ -137,7 +137,8 @@ function setup_ssl() { openssl req -batch -subj '/CN=localhost' \ -new -out "${SERVER_CERT}.csr" -key "$SERVER_KEY" openssl x509 -req -in "${SERVER_CERT}.csr" -out "$SERVER_CERT" -days 1 \ - -CAkey "$CA_KEY" -CA "$CA_CERT" -CAcreateserial -CAserial serial + -CAkey "$CA_KEY" -CA "$CA_CERT" -CAcreateserial \ + -CAserial ${TESTDIR}/serial CLIENT_KEY="$TESTDIR/client.key" CLIENT_CERT="$TESTDIR/client.cert" @@ -145,7 +146,8 @@ function setup_ssl() { openssl req -batch -subj "/CN=$SYSDB_USER" \ -new -out "${CLIENT_CERT}.csr" -key "$CLIENT_KEY" openssl x509 -req -in "${CLIENT_CERT}.csr" -out "$CLIENT_CERT" -days 1 \ - -CAkey "$CA_KEY" -CA "$CA_CERT" -CAcreateserial -CAserial serial + -CAkey "$CA_KEY" -CA "$CA_CERT" -CAcreateserial \ + -CAserial ${TESTDIR}/serial } # vim: set tw=78 sw=4 ts=4 noexpandtab :