954,515 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Script filling password from com line

hello
I have this command that i am calling from php (exec()):

openssl pkcs12 -export -in cert.pem -inkey key.pem -out cred.p12


and then i need to insert password twice
Enter Export Password:
Verifying - Enter Export Password:

I need script that will fill the password inputs, do you have any idea how should i do it?

rockyada
Newbie Poster
2 posts since Jan 2012
Reputation Points: 10
Solved Threads: 0
 

Look at the Expect scripting language. Expect is an extension of the TCL scripting language. If your prefer, Python has the python expect module that you can use that is based on the Expect language.

ennoil
Newbie Poster
12 posts since May 2009
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You