From 6d8389c7e3f2bad7ffd21c132451a8ee2c4bda8a Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Wed, 25 Feb 2015 10:20:35 +0100 Subject: [PATCH] integration/test_lib.sh: Store the CA serial in $TESTDIR. --- t/integration/test_lib.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 : -- 2.30.2