1.

Solve : Bath file auto answer problem?

Answer»

Hi, all!
I've a such as problem: I use openssl to sign certificate signing requests.
When I use following command: openssl ca policy policy_anything -out olim.crt -infiles olim.csr I NEED to answer to questions:
1. Sign the certificate? [y/n]:
2. 1 out of 1 certificate requests certified, commit? [y/n].

To automatic answer to first question i use following on BATCH FILE:
echo y | openssl ca policy policy_anything -out olim.crt -infiles olim.csr
How do I answer second question yes?
Please HELP me...
Thanks for answersYou can try creating a response file with each answer on a separate line.

Response.txt
Code: [Select]y
y

When you run the command, as each question is prompted for, ONE line from the response file will be redirected into the program.

Code: [Select]< response.txt openssl ca policy policy_anything -out olim.crt -infiles olim.csr

Good luck. Sidewinder!
It works, thank a lot!!!
Good luck!



Discussion

No Comment Found