From owner-freebsd-questions Wed Jul 10 9:44:43 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 16DF637B400 for ; Wed, 10 Jul 2002 09:44:40 -0700 (PDT) Received: from cypress.adhesivemedia.com (cypress.adhesivemedia.com [207.202.159.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9038C43E54 for ; Wed, 10 Jul 2002 09:44:39 -0700 (PDT) (envelope-from philip@adhesivemedia.com) Received: from cypress.adhesivemedia.com (localhost [127.0.0.1]) by cypress.adhesivemedia.com (8.12.3/8.12.3) with ESMTP id g6AGiYdq084674; Wed, 10 Jul 2002 09:44:34 -0700 (PDT) (envelope-from philip@adhesivemedia.com) Received: from localhost (philip@localhost) by cypress.adhesivemedia.com (8.12.3/8.12.3/Submit) with ESMTP id g6AGiXOm084671; Wed, 10 Jul 2002 09:44:34 -0700 (PDT) X-Authentication-Warning: cypress.adhesivemedia.com: philip owned process doing -bs Date: Wed, 10 Jul 2002 09:44:33 -0700 (PDT) From: Philip Hallstrom To: Juan Francisco Rodriguez Hervella Cc: freebsd-questions@FreeBSD.ORG Subject: Re: "apachectl startssl" script with automatic password In-Reply-To: <3D2C6338.C916AEDE@it.uc3m.es> Message-ID: <20020710094407.H83976-100000@cypress.adhesivemedia.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 "\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