From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Harihar Krishnan Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: Automating password input to "apachectl..." Date: Sun, 18 May 2003 09:10:06 +0300 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <2706D50C448FD6119EAC00508BAF174B4C9347@MAILSRV> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1256 X-Trace: main.gmane.org 1053237634 20101 80.91.224.249 (18 May 2003 06:00:34 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 18 May 2003 06:00:34 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Sun May 18 08:00:31 2003 Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.22.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 19HHDj-0005Dy-00 for ; Sun, 18 May 2003 08:00:31 +0200 Original-Received: (qmail 6953 invoked by uid 5); 18 May 2003 06:02:07 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 6944 invoked by uid 49493); 18 May 2003 06:02:07 -0000 Original-Received: from harik@bma.gov.bh by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.54. spamassassin: 2.50-cvs. Clear:SA:0(-5.7/5.0):. Processed in 0.425907 secs); 18 May 2003 06:02:07 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 18 May 2003 06:02:06 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HF2004JDJFHVO@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Sun, 18 May 2003 02:02:06 -0400 (EDT) Original-Received: from xsrv.bmagtway.gov.bh ([217.17.227.178]) by emroute1.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HF200D05JFC84@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Sun, 18 May 2003 02:02:03 -0400 (EDT) Original-Received: from mailsrv.bma.gov.bh (MAILSRV [192.168.1.2]) by xsrv.bmagtway.gov.bh with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id JNJJ1B2W; Sun, 18 May 2003 08:58:31 +0300 Original-Received: by MAILSRV with Internet Mail Service (5.5.2653.19) id ; Sun, 18 May 2003 09:10:07 +0300 Content-return: allowed Original-To: 'Tru64 User Group' X-Mailer: Internet Mail Service (5.5.2653.19) Xref: main.gmane.org gmane.os.tru64.managers:4269 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:4269 > Thanks, gentlemen. I recd. some solutions (looks like no > straight-forward solution exists) as follows (thanks to Kai Lanz, Chris > Adams, Mike Caplin, A. Gutierrez & Dr. Thomas P. Blinn): > > 1. Use the dialog option to provide the passphrase > automatically. In your apache-ssl httpd.conf file, comment out the > "SSLPassPhraseDialog builtin" line and replace it with something like > > SSLPassPhraseDialog exec:/path/to/apache-ssl/sbin/pp > > where "pp" is an executable shell script that just echoes > the passphrase. This is insecure because now you have a file on your > system containing your passphrase in plaintext. > > A little poking around probably revealed that most people > use method 1. > > 2. Convert the certificate to a non-password cert, do: > > openssl rsa -in server.key-with_pass -out > server.key-no_pass > > where server.key is your private key. > > 4. Start it from an "expect" script; while "expect" is not > part of the standard base Tru64 UNIX package, it may be included in the > open source software CD and certainly can be had from one or more of the > open source web repositories. > > > Harihar K > ************************************************************************** > ****************************** > -----Original Message----- > > > > Dear Experts, > > > > We have a situation where our Web Server starts > > up in SSL > > mode using the command "apachectl startssl". This command > > needs a password > > to be passed on everytime the Web Server is started. We are > > currently trying > > to automate this so that when the machine is booted up, the > > web server also > > starts up without explicitly asking for the password. But > > we are lost on how > > to pass the password to the above command in our startup script. Any > > suggestions please. Thanks. > > > > Harihar K > >