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
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.