summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8b8cbad)
raw | patch | inline | side by side (parent: 8b8cbad)
author | Sebastian Harl <sh@tokkee.org> | |
Wed, 25 Feb 2015 09:20:35 +0000 (10:20 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Wed, 25 Feb 2015 09:20:35 +0000 (10:20 +0100) |
t/integration/test_lib.sh | patch | blob | history |
index e3a2092b2ee3d2a74701b460cd3e3137e8e35a98..1fb3324ca332081fddc9dac43392913cad21e966 100644 (file)
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"
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 :