We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,477 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
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?

2
Contributors
1
Reply
2 Days
Discussion Span
1 Year Ago
Last Updated
2
Views
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

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page generated in 0.2849 seconds using 2.68MB