Usually I use expect in the shell script for interactive programs. Look at
the example bellow I have wrote for SFTP and try to adopt it for your needs.

/usr/bin/expect <<EOF
spawn  /usr/bin/sftp u...@ip_address
expect {
        "Password: " {
                        send "PASSWORD\r"
         }
        "Are you sure you want to continue connecting (yes/no)? " {
                        send "yes\n"
                        expect "Password: "
                        send "PASSWORD\r"
                     }
}
expect "sftp> "
send "cd $DIR \r"
expect "sftp> "
send "lcd $LOCALDIR \r"
expect "sftp> "
send "get $file \r"
expect "sftp> "
send "bye \r"
EOF


So in short you expect the program interactive prompt with the expect
statement (modify it to suite your prompt) and you send the response back
with send command. But I'm not sure if this can help you and if you get any
prompt at all when restarting the apache with SSL password, I have never
tried that.




On Tue, Apr 28, 2009 at 9:16 AM, Mike Lyon <mike.l...@gmail.com> wrote:

> It's another link in the security of that certificate... I'd prefer to keep
> it. It guarantees continuity from the creation of the CSR until you get the
> cert back from the CA.
>
> -Mike
>
>
>
> On Mon, Apr 27, 2009 at 4:12 PM, Igor Cicimov <icici...@gmail.com> wrote:
>
>> Recreate the certificate without passphrase, what do you need it for any
>> way?
>>
>>
>> On Tue, Apr 28, 2009 at 8:50 AM, Mike Lyon <mike.l...@gmail.com> wrote:
>>
>>> Hello All,
>>>
>>> There has to be an easy answer to this question. When I restart apache,
>>> it prompts me to enter in the passphrase for the SSL certs. How can I create
>>> a shell script to automatically enter in the passphrase for me when apache
>>> starts up at boot-up?
>>>
>>> Thank you,
>>> Mike
>>>
>>>
>>
>

Reply via email to