Skip to content

Instantly share code, notes, and snippets.

@billautomata
Created April 14, 2015 12:50
Show Gist options
  • Save billautomata/9959f421da8dccde9b2c to your computer and use it in GitHub Desktop.
Save billautomata/9959f421da8dccde9b2c to your computer and use it in GitHub Desktop.
how to use expect
#!/usr/bin/expect -f
spawn openssl pkcs12 -export -in client.crt -inkey private.key -certfile ca.crt -name Evident-Dev -out clientcert.p12
expect "assword:"
send "\r\r"
interact
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment