fixes expect timeout

This commit is contained in:
redfast00 2016-10-09 13:34:17 +02:00
parent 6be0b09b00
commit 147192c79b
No known key found for this signature in database
GPG key ID: B7DD106EAC545F95

View file

@ -20,6 +20,7 @@ function keynoPASS() {
#Build the client key #Build the client key
expect << EOF expect << EOF
set timeout -1
spawn ./build-key "$NAME" spawn ./build-key "$NAME"
expect "Country Name" { send "\r" } expect "Country Name" { send "\r" }
expect "State or Province 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 #Build the client key and then encrypt the key
expect << EOF expect << EOF
set timeout -1
spawn ./build-key-pass "$NAME" spawn ./build-key-pass "$NAME"
expect "Enter PEM pass phrase" { send "$PASSWD\r" } expect "Enter PEM pass phrase" { send "$PASSWD\r" }
expect "Verifying - Enter PEM pass phrase" { send "$PASSWD\r" } expect "Verifying - Enter PEM pass phrase" { send "$PASSWD\r" }
@ -91,6 +93,7 @@ EOF
cd keys || exit cd keys || exit
expect << EOF expect << EOF
set timeout -1
spawn openssl rsa -in "$NAME$OKEY" -des3 -out "$NAME$KEY" spawn openssl rsa -in "$NAME$OKEY" -des3 -out "$NAME$KEY"
expect "Enter pass phrase for" { send "$PASSWD\r" } expect "Enter pass phrase for" { send "$PASSWD\r" }
expect "Enter PEM pass phrase" { send "$PASSWD\r" } expect "Enter PEM pass phrase" { send "$PASSWD\r" }