mirror of
https://github.com/stefanocasazza/ULib.git
synced 2025-09-28 19:05:55 +08:00
43 lines
861 B
Bash
Executable File
43 lines
861 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. ../.function
|
|
|
|
## https.test -- Test https feature
|
|
|
|
start_msg https
|
|
|
|
rm -f err/https.err
|
|
|
|
#UTRACE="0 5M 0"
|
|
#UOBJDUMP="0 100k 10"
|
|
#USIMERR="error.sim"
|
|
export UTRACE UOBJDUMP USIMERR
|
|
|
|
#CApath_rehash
|
|
|
|
#if [ "$TERM" = "msys" ]; then
|
|
#else
|
|
CAPATH="CA/CApath"
|
|
CACERT="CA/cacert.pem"
|
|
USER_KEY="CA/username.key"
|
|
USER_CERT="CA/username.crt"
|
|
SERVER_KEY="CA/server.key"
|
|
SERVER_CERT="CA/server.crt"
|
|
#fi
|
|
|
|
LCMD="$OPENSSL s_server -quiet -accept 4333 -no_dhe -cert $SERVER_CERT -key $SERVER_KEY -pass pass:caciucco 2>>err/https.err"
|
|
|
|
#STRACE=$TRUSS
|
|
start_cmd_background "$LCMD <inp/http/response.chunked >out/request.https"
|
|
$SLEEP
|
|
$SLEEP
|
|
start_prg https https://localhost:4333
|
|
|
|
#start_cmd_background "$LCMD <inp/http/response.auth >>out/request.https"
|
|
#$SLEEP
|
|
#$SLEEP
|
|
#start_prg https https://localhost:4333
|
|
|
|
# Test against expected output
|
|
test_output_wc w https
|