![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Jul 2004
Posts: 5
Rep Power: 0
![]() |
Hey guys, i'm having a little trouble and wondered if you could help.
I'm creating a batch file that when executed will run a keytool to generate an SSL key. Running the keytool isn't a problem, however, once that command has been executed, you are then asked for a password, and further more, details of your name, location, etc. Does anyone know how to make the batch file enter values for each of the required fields? I need these values to be predefined within the batch file. Hope you can help, thanks, SEB |
|
|
|
|
|
#2 |
|
Programming Guru
![]() ![]() ![]() |
Does this tool has a command-line interface option? You could pass the values in as parameters to the tool itself.
Otherwise you could set environment variables to values that are predefined, using a "priming" batch script... Then read in those values... The easiest way would be if the tool has a command-line interface: mytool -name IR -location US ........ etc.
__________________
http://jasonpowers.net "There are a thousand hacking at the branches of evil to one who is striking at the root." |
|
|
|
|
|
#3 |
|
Newbie
Join Date: Jul 2004
Posts: 5
Rep Power: 0
![]() |
Ok, I think I've figured it. You are right with the command line interface.
I could have been more specific and said that it is the keytool that comes with j2sdk... I'll have a play and see what happens - thanks for your suggestion, you've helped me out of this hole! |
|
|
|
|
|
#4 |
|
Newbie
Join Date: Jul 2004
Posts: 5
Rep Power: 0
![]() |
I've pretty much solved it, however, there's one thing i cannot figure out.
I've amde the script to enter all the values, however, you need to enter a password at the end, OR, press enter if it is the same password as the one given earlier. It is the same, so i need to make the script "press enter" for me. Does this make sense? Seb |
|
|
|
|
|
#5 |
|
Newbie
Join Date: Jul 2004
Posts: 5
Rep Power: 0
![]() |
done
![]() |
|
|
|
|
|
#6 |
|
Programming Guru
![]() ![]() ![]() |
Glad that you got it figured out.
![]()
__________________
http://jasonpowers.net "There are a thousand hacking at the branches of evil to one who is striking at the root." |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|