User Tools

Site Tools


apache:use_password_protected_certificates

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
apache:use_password_protected_certificates [2019/12/04 23:55] peterapache:use_password_protected_certificates [2023/07/17 11:06] (current) – removed peter
Line 1: Line 1:
-====== Apache - Use password protected certificates ====== 
- 
-A lot of people remove the passphrase from their own key files because it's the simplest solution, but security-wise, it's not the best idea. 
- 
-An alternative is to feed the passphrase to Apache. You can do this with the **SSLPassPhraseDialog** option in the httpd.conf (or another file that it includes). 
- 
-If you only have one SSL site on your server, the simplest form of this would be: 
- 
-<file bash /etc/apache2/httpd.conf> 
-# either of these will work 
-SSLPassPhraseDialog |/path/to/passphrase-script 
-SSLPassPhraseDialog exec:/path/to/passphrase-script 
-</file> 
- 
- 
-You would then create a very simple script called **/path/to/passphrase-script** that contains something like the following: 
- 
-<file bash /path/to/passphrase-script> 
-#!/bin/sh 
-echo "put the passphrase here" 
-</file> 
- 
-<WRAP warning> 
-**WARNING**:  As this script would contain the actual passphrase, it needs to be securely locked-down. 
-</WRAP> 
- 
-When starting up, Apache will take the output of this script and use it as the passphrase for the SSL key.  If you have multiple SSL sites, **SSLPassPhraseDialog** has additional ways in which it can be used, so you can either have a single script for all of your keys, or a separate script for each, or however you want to do it. 
  
apache/use_password_protected_certificates.1575503758.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki