Improve op_test.sh: make wait_sec variable; Add server with SAN renew test.
Signed-off-by: Richard Bonhomme <tincanteksup@gmail.com>
This commit is contained in:
parent
2412fa31b5
commit
f6e26cd42c
@ -163,7 +163,8 @@ verb_off ()
|
|||||||
|
|
||||||
wait_sec ()
|
wait_sec ()
|
||||||
{
|
{
|
||||||
( sleep 4 2>/dev/null ) || { ( ping -n 1 127.0.0.1 2>/dev/null ) && ping -n 3 127.0.0.1; }
|
delay=${1:-3}
|
||||||
|
( sleep $delay 2>/dev/null ) || { ( ping -n 1 127.0.0.1 2>/dev/null ) && ping -n $delay 127.0.0.1; }
|
||||||
}
|
}
|
||||||
|
|
||||||
setup ()
|
setup ()
|
||||||
@ -370,7 +371,7 @@ build_full ()
|
|||||||
build_san_full ()
|
build_san_full ()
|
||||||
{
|
{
|
||||||
newline 1
|
newline 1
|
||||||
STEP_NAME="--subject-alt-name=IP:0.0.0.0 build-server-full $REQ_name nopass"
|
STEP_NAME="--subject-alt-name=DNS:www.example.org,IP:0.0.0.0 build-server-full $REQ_name nopass"
|
||||||
action
|
action
|
||||||
secure_key
|
secure_key
|
||||||
}
|
}
|
||||||
@ -480,6 +481,9 @@ create_pki ()
|
|||||||
REQ_name="s02"
|
REQ_name="s02"
|
||||||
build_san_full
|
build_san_full
|
||||||
show_cert
|
show_cert
|
||||||
|
wait_sec
|
||||||
|
renew_cert
|
||||||
|
show_cert
|
||||||
revoke_cert
|
revoke_cert
|
||||||
|
|
||||||
REQ_type="serverClient"
|
REQ_type="serverClient"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user