Skip to content

Commit

Permalink
Merge pull request #6 from jsokol/master
Browse files Browse the repository at this point in the history
Reconfigured to use build-key-pass instead of build-key
  • Loading branch information
redgeoff authored Aug 26, 2018
2 parents ceae4c2 + 0260633 commit ae9598c
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion build-key.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,25 @@

set name [lindex $argv 0];

spawn ./build-key $name
# Get the password for the VPN account
stty -echo
send_user -- "VPN User Password: "
expect_user -re "(.*)\n"
send_user "\n"
stty echo
set pass $expect_out(1,string)

# Confirm the password for the VPN account
stty -echo
send_user -- "Confirm VPN User Password: "
expect_user -re "(.*)\n"
send_user "\n"
stty echo
set confirm_pass $expect_out(1,string)

spawn ./build-key-pass $name
send -- "$pass\r"
send -- "$confirm_pass\r"
expect "Country Name"
send "\n"
expect "State or Province Name"
Expand Down

0 comments on commit ae9598c

Please sign in to comment.