Hello, I'm sorry I've been AFK. Its a cert used and installed on the web server side. Whenever the webserver restarts it prompts for the passphrase; need to automate this.
Main Topics
Browse All TopicsHello,
I am a complete Linux newbie and need some help. I have Fedora 7 and have generated and installed a cert for my webserver with encryption. I would like to automate the pass phrase using the SSLPassPhraseDialog, and although I've read the directive on this, I'm unclear how to use it. It refers to an external program that is configured which is called at startup for each encrypted Private Key file. Is this something I have to install? If so, can someone suggest what to use? Is there a file out there I'm supposed to be looking for that I simply need to add the passphrase to?
I recognize I am out of my element here, and I need this explained in english so I can understand and implement.
THANK YOU!
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
First thing's first: I totally agree with ahoffmann. The proper way to secure your certificates is to remove the pass-phrase, mark the unencrypted private key as root:400, and put it somewhere safe. Any other solution necessarily means that your pass-phrase is available, probably in clear-text, SOMEWHERE on the system.
If you are still determined to use the pass-phrase anyways, see here:
http://httpd.apache.org/do
The 'builtin' option is simply the built-in Apache dialog. You start Apache, and it asks for the pass-phrase for each certificate it has to load.
The '|/path/to/program [args]' option pipes the internal Apache dialog to an external program. That means you need to create an external, executable file (either a compiled image, or even a shell script). It should expect the Apache prompt dialog as input, and must write the pass-phrase to stdout.
The final option, 'exec:/path/to/program', is very much like the previous one. The main difference here is that Apache does not pipe the internal dialog to the app, but rather calls it as an external process with arguments. The first argument takes the form of "servername:portnumber", and the second indicates the key type (RSA/DSA). As before, the external application must write the pass-phrase to stdout.
The easiest ***and most insecure*** method of doing this is a simple shell script. Assuming all of your certificates are using the same pass-phrase, see the code below. With multiple pass-phrases, you will need some logic to determine the appropriate pass-phrase given the servername and portnumber. Ideally, this should be an external, compiled application, with the pass-phrase catalog saved in the image as encrypted text.
Business Accounts
Answer for Membership
by: ahoffmannPosted on 2009-10-11 at 01:05:03ID: 25545197
are you talking about the cert installed in and used by your we server, or are you talking about generating client certificates to be delivered and installed in a browser?