General discussion

Locked

automate ssl password entry at startup

By mjwx ·
I have a Linux box (fedora core 1) running Nagios monitoring our websites from a remote location. I need a way to automatically run a few commands (the Nagios and apache start commands) and put in the apache SSL certificate password during startup in the case that the box loses power. Is there a way I can do this with a shell script that will run at startup (not login as it is likely that no-one will be near the box to log in) or can anyone think of a better way to do this.


Thanks in advance
Mike

This conversation is currently closed to new comments.

2 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

by Martin Simons In reply to automate ssl password ent ...

Your best bet is to recreate the certificate
without a password. Your next possibility is to
create a perl script using expect to start the
apache and enter the password and have your start
script call that script instead of starting the
apache itself. But, in this case, you will be
storing the password in plaintext on the system
anyway, so it the same as not having a password
on the certificate anyway.

Collapse -

by mjwx In reply to automate ssl password ent ...

security is not an issue, ive put it on a secure network. the box needs to start up without any human interaction.

Back to Linux Forum
2 total posts (Page 1 of 1)  

Related Discussions

Related Forums