Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jul 2002 09:44:33 -0700 (PDT)
From:      Philip Hallstrom <philip@adhesivemedia.com>
To:        Juan Francisco Rodriguez Hervella <jrh@it.uc3m.es>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: "apachectl startssl" script with automatic password
Message-ID:  <20020710094407.H83976-100000@cypress.adhesivemedia.com>
In-Reply-To: <3D2C6338.C916AEDE@it.uc3m.es>

next in thread | previous in thread | raw e-mail | index | archive | help
Check the manual for the following configuration option:

SSLPassPhraseDialog  exec:/path/to/script/that/supplies/password.sh

On Wed, 10 Jul 2002, Juan Francisco Rodriguez Hervella wrote:

> Hello:
>
> I've got a script in "/usr/local/etc/rc.d/" which sets up the apache web
> server
> with ssl support. The problem is that when it's executed, this happens:
>
> root@mira:/usr/local/etc/rc.d# ./apache.sh start
> Apache/1.3.26 mod_ssl/2.8.10 (Pass Phrase Dialog)
> Some of your private key files are encrypted for security reasons.
> In order to read them you have to provide us with the pass phrases.
>
> Server new.host.name:443 (RSA)
> Enter pass phrase:
>
> And the booting process doesn't continue any longer.
>
> I've installed "Expect" and I've tried this script:
>
> --------------
> #!/usr/local/bin/expect
>
> spawn apachectl startssl
> expect "Enter pass phrase:"
> send "<my_password>\r"
> --------------
>
> But this happens:
>
> root@mira:/usr/local/etc/rc.d# ./S65_apache.sh
> spawn apachectl startssl
> Apache/1.3.26 mod_ssl/2.8.10 (Pass Phrase Dialog)
> Some of your private key files are encrypted for security reasons.
> In order to read them you have to provide us with the pass phrases.
>
> Server new.host.name:443 (RSA)
> Enter pass phrase:root@mira:/usr/local/etc/rc.d#
>
>
>
> And  when I make "ps ax | grep http" I see nothing running...
> How can I make this ? I'm not an "Expect" expert :)
>
> Thanks in advance.
>
>
> --
> JFRH.
>
>
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
>


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020710094407.H83976-100000>