mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-03-16 14:57:48 +08:00
tests: moved all certificates and keys in certs/
This commit is contained in:
@@ -58,7 +58,7 @@ fi
|
||||
echo ""
|
||||
echo "Connecting with correct username"
|
||||
$ECHO_E "test" >pass-full$TMP
|
||||
$OPENCONNECT $IP:$PORT_OCSERV -b --sslkey ./user-key.pem -c ./user-cn.pem --pid-file $PIDFILE -u test --passwd-on-stdin -v --servercert=d66b507ae074d03b02eafca40d35f87dd81049d3 < pass-full$TMP
|
||||
$OPENCONNECT $IP:$PORT_OCSERV -b --sslkey ./certs/user-key.pem -c ./certs/user-cn.pem --pid-file $PIDFILE -u test --passwd-on-stdin -v --servercert=d66b507ae074d03b02eafca40d35f87dd81049d3 < pass-full$TMP
|
||||
if test $? != 0;then
|
||||
echo "Cannot connect to server"
|
||||
stop
|
||||
|
||||
Reference in New Issue
Block a user