Start New Discussion Reply to this Discussion 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?
Related Article: scp specifying password
is a solved Shell Scripting discussion thread by k2k that has 5 replies and was last updated 1 year ago.
rockyada
Newbie Poster
2 posts since Jan 2012
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 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
17 posts since May 2009
Reputation Points: 10
Solved Threads: 1
Skill Endorsements: 0
© 2013 DaniWeb® LLC
Page generated in 0.2849 seconds
using 2.68MB