tests: Generate a fresh OCSP response for each test run
authorJouni Malinen <j@w1.fi>
Sun, 11 Jan 2015 18:17:51 +0000 (20:17 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 11 Jan 2015 22:19:21 +0000 (00:19 +0200)
commit279a0afffbf5bde7bd6da5f0d6cde0bd4bb5cfee
tree1ddd07e4acd9a2e3649b651e4892d1ac4b7d1bf5
parent0ff7afbc42e0a2748bcd23bd58421171dd00a95c
tests: Generate a fresh OCSP response for each test run

GnuTLS has a hardcoded three day limit on OCSP response age regardless
of the next update value in the response. To make this work in the test
scripts, try to generate a new response when starting the authentication
server. The old mechanism of a response without next update value is
used as a backup option if openssl is not available or fails to generate
the response for some reason.

Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/auth_serv/as.conf
tests/hwsim/auth_serv/as2.conf
tests/hwsim/auth_serv/index.txt [new file with mode: 0644]
tests/hwsim/auth_serv/ocsp-req.der [new file with mode: 0644]
tests/hwsim/auth_serv/ocsp-responder.key [new file with mode: 0644]
tests/hwsim/auth_serv/ocsp-responder.pem [new file with mode: 0644]
tests/hwsim/start.sh