From owner-freebsd-questions Wed Jul 10 9:39:41 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 249AE37B400 for ; Wed, 10 Jul 2002 09:39:36 -0700 (PDT) Received: from smtp.uc3m.es (smtp03.uc3m.es [163.117.136.123]) by mx1.FreeBSD.org (Postfix) with ESMTP id 33BFA43E54 for ; Wed, 10 Jul 2002 09:39:35 -0700 (PDT) (envelope-from jrh@it.uc3m.es) Received: from smtp03.uc3m.es (localhost [127.0.0.1]) by smtp.uc3m.es (Postfix) with ESMTP id 1624F4312F for ; Wed, 10 Jul 2002 17:39:36 +0200 (CEST) Received: from it.uc3m.es (pulgon.it.uc3m.es [163.117.140.177]) by smtp03.uc3m.es (Postfix) with ESMTP id CDE1999DE8 for ; Wed, 10 Jul 2002 17:39:35 +0200 (CEST) Message-ID: <3D2C6338.C916AEDE@it.uc3m.es> Date: Wed, 10 Jul 2002 18:39:20 +0200 From: Juan Francisco Rodriguez Hervella X-Mailer: Mozilla 4.78 [en] (X11; U; Linux 2.4.2 i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: "apachectl startssl" script with automatic password Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 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