Append password on script when restarting web instance

im writing a start/stop script for a web instance (solaris) .
Currently I usually start it using the command below and it will ask me to put the token password for the web_instance. (token pw: 12345)

/opt/SUNWwbsvr/https-www.myhost.com/start

I would like to create a script that will execute the above command withougt entering the token pw. The user will have sudo priviledge though. Pls help.

Since you'd need to store the password in cleartext (if this script is even possible), it's better just to remove the password that is probably in your ssl key than to leave a password in clear text. Back up encrypted.key

openssl rsa -in encrypted.key -out unencrypted.key

Then point to the unencrypted.key, or move it to encrypted.key (or what is appropriate to your installation). This will effectively make it so you don't have to put in the password on launch, which is what you want anyway. Protecting a key, then putting the password in the script to launch it is a bit backwards anyway.

we would like to stay the pw instead of decrypting it.would you know how to store it in clear text?

Is the goal that you don't want to actually type it each time?

If so, what does the next prompt look like?

i mean the user would not ask to enter the https (SSL) password when web instance will be started. is thi spossible/>