Solved

entering the apache ssl password automatically.

Posted on 2006-07-17
4
249 Views
Last Modified: 2012-08-14
Hi there
We have an apache 2 server running on red hat.
We have an SSL certificate protected by a password that we have to enter every time we restart the server or the apache service.
Is there a method to automate this procedure so that entering the pass would not be necessary?
0
Comment
Question by:eggster34
  • 2
  • 2
4 Comments
 
LVL 4

Expert Comment

by:Tol_cv
ID: 17129525
you can provide the passwd with an external program and directive SSLPassPhraseDialog

http://httpd.apache.org/docs/2.0/mod/mod_ssl.html.

another solution would be to remove the  certificate password
0
 

Author Comment

by:eggster34
ID: 17133332
I don't really understand. Is there anyone who has done it before where it's documented or is it just an idea?
what would the external program be like? how should I write it?
0
 
LVL 4

Accepted Solution

by:
Tol_cv earned 500 total points
ID: 17136581
for just the passphrase and no other checks, a simple bash script can be:

#!/bin/bash
# This file is /var/lib/apache/conf/sslpass
echo "<your apache password>"


in apache config:

SSLPassPhraseDialog      exec:/var/lib/apache/conf/sslpass


0
 

Author Comment

by:eggster34
ID: 17141572
ok let me try this.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting http://domain.com (http://domain.com) to http…
As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question