aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorleishaoting <leist.fnst@cn.fujitsu.com>2017-12-19 06:40:44 (GMT)
committerJouni Malinen <j@w1.fi>2017-12-24 19:40:21 (GMT)
commit481d88c06077ef72524906b2fb2568502d98c3d4 (patch)
treee78c1222d75a1b96d65551abeeaa5fe34f7230d4
parent9596a756520d6ebcc9d44384f0c88305f063a9fe (diff)
downloadhostap-481d88c06077ef72524906b2fb2568502d98c3d4.zip
hostap-481d88c06077ef72524906b2fb2568502d98c3d4.tar.gz
hostap-481d88c06077ef72524906b2fb2568502d98c3d4.tar.bz2
tests: Fix "ocsp: Digest must be before -cert or -serial"
When executing ./start.sh with OpenSSL 1.1.0f, an OCSP operation fails. Put "-sha256" ahead of "-serial" to fix this. ~# openssl version OpenSSL 1.1.0f 25 May 2017 ~# openssl ocsp -reqout /lkp/benchmarks/hwsim/tests/hwsim/logs/current/ocsp-req.der -issuer /lkp/benchmarks/hwsim/tests/hwsim/auth_serv/ca.pem -serial 0xD8D3E3A6CBE3CD12 -no_nonce -sha256 ocsp: Digest must be before -cert or -serial ocsp: Use -help for summary. ~# openssl ocsp -reqout /lkp/benchmarks/hwsim/tests/hwsim/logs/current/ocsp-req.der -issuer /lkp/benchmarks/hwsim/tests/hwsim/auth_serv/ca.pem -sha256 -serial 0xD8D3E3A6CBE3CD12 -no_nonce Signed-off-by: leishaoting <leist.fnst@cn.fujitsu.com>
-rwxr-xr-xtests/hwsim/start.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/hwsim/start.sh b/tests/hwsim/start.sh
index e7fb148..fe46212 100755
--- a/tests/hwsim/start.sh
+++ b/tests/hwsim/start.sh
@@ -165,7 +165,7 @@ for i in unknown revoked; do
done
openssl ocsp -reqout $LOGDIR/ocsp-req.der -issuer $DIR/auth_serv/ca.pem \
- -serial 0xD8D3E3A6CBE3CD12 -no_nonce -sha256 >> $LOGDIR/ocsp.log 2>&1
+ -sha256 -serial 0xD8D3E3A6CBE3CD12 -no_nonce >> $LOGDIR/ocsp.log 2>&1
for i in "" "-unknown" "-revoked"; do
openssl ocsp -index $DIR/auth_serv/index$i.txt \
-rsigner $DIR/auth_serv/ca.pem \