From 147192c79b6d19916ee8ddbffca4275d2d55e142 Mon Sep 17 00:00:00 2001 From: redfast00 Date: Sun, 9 Oct 2016 13:34:17 +0200 Subject: [PATCH] fixes expect timeout --- scripts/makeOVPN.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/makeOVPN.sh b/scripts/makeOVPN.sh index 4dddbc0..60210a1 100644 --- a/scripts/makeOVPN.sh +++ b/scripts/makeOVPN.sh @@ -20,6 +20,7 @@ function keynoPASS() { #Build the client key expect << EOF + set timeout -1 spawn ./build-key "$NAME" expect "Country Name" { send "\r" } expect "State or Province Name" { send "\r" } @@ -70,6 +71,7 @@ function keyPASS() { #Build the client key and then encrypt the key expect << EOF + set timeout -1 spawn ./build-key-pass "$NAME" expect "Enter PEM pass phrase" { send "$PASSWD\r" } expect "Verifying - Enter PEM pass phrase" { send "$PASSWD\r" } @@ -91,6 +93,7 @@ EOF cd keys || exit expect << EOF + set timeout -1 spawn openssl rsa -in "$NAME$OKEY" -des3 -out "$NAME$KEY" expect "Enter pass phrase for" { send "$PASSWD\r" } expect "Enter PEM pass phrase" { send "$PASSWD\r" }