Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jul 16th, 2004, 7:42 AM   #1
Seb
Newbie
 
Join Date: Jul 2004
Posts: 5
Rep Power: 0 Seb is on a distinguished road
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
Seb is offline   Reply With Quote
Old Jul 16th, 2004, 7:55 AM   #2
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,467
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
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."
Infinite Recursion is offline   Reply With Quote
Old Jul 16th, 2004, 8:28 AM   #3
Seb
Newbie
 
Join Date: Jul 2004
Posts: 5
Rep Power: 0 Seb is on a distinguished road
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!
Seb is offline   Reply With Quote
Old Jul 16th, 2004, 9:27 AM   #4
Seb
Newbie
 
Join Date: Jul 2004
Posts: 5
Rep Power: 0 Seb is on a distinguished road
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
Seb is offline   Reply With Quote
Old Jul 16th, 2004, 9:36 AM   #5
Seb
Newbie
 
Join Date: Jul 2004
Posts: 5
Rep Power: 0 Seb is on a distinguished road
done
Seb is offline   Reply With Quote
Old Jul 16th, 2004, 1:11 PM   #6
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,467
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
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."
Infinite Recursion is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 9:59 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC