diff options
author | Jonas Smedegaard <dr@jones.dk> | 2002-12-31 03:01:16 +0000 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2002-12-31 03:01:16 +0000 |
commit | 25f363761af5dc9b435038c9ca6c3ea4dee306e1 (patch) | |
tree | 76dc6b71e3af317a08e2e83220e04d47dbd920be | |
parent | 8d6bf5474d678cc0b61eaeab7e2c740741f89323 (diff) |
Add certificate section.
-rwxr-xr-x | apache/apache-ssl.cf | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/apache/apache-ssl.cf b/apache/apache-ssl.cf index 1a63b4b..9248364 100755 --- a/apache/apache-ssl.cf +++ b/apache/apache-ssl.cf @@ -349,6 +349,51 @@ editfiles: EndGroup UnsetAbort "^# END CFENGINE$" EndGroup + # + # #SSLCACertificatePath + # SSLCACertificateFile cacert.pem + # SSLCertificateFile apache.pem + # SSLCertificateKeyFile apache.pem + # + ResetSearch "1" + CommentLinesMatching "SSLCACertificatePath" + CatchAbort + BeginGroupIfFileExists "/etc/ssl/certs/cacert.pem" + ResetSearch "1" + CommentLinesMatching "SSLCACertificateFile" + CatchAbort + AbortAtLineMatching "^# END CFENGINE$" + LocateLineMatching "^# BEGIN CFENGINE$" + BeginGroupIfNoSuchLine "SSLCACertificateFile cacert.pem" + InsertLine "SSLCertificateFile apache.pem" + EndGroup + ResetSearch "1" + UnsetAbort "^# END CFENGINE$" + EndGroup + BeginGroupIfFileExists "/etc/ssl/certs/apache.pem" + ResetSearch "1" + CommentLinesMatching "SSLCertificateFile" + CatchAbort + AbortAtLineMatching "^# END CFENGINE$" + LocateLineMatching "^# BEGIN CFENGINE$" + BeginGroupIfNoSuchLine "SSLCertificateFile apache.pem" + InsertLine "SSLCertificateFile apache.pem" + EndGroup + ResetSearch "1" + UnsetAbort "^# END CFENGINE$" + EndGroup + BeginGroupIfFileExists "/etc/ssl/private/apache.pem" + ResetSearch "1" + CommentLinesMatching "SSLCertificateKeyFile" + CatchAbort + AbortAtLineMatching "^# END CFENGINE$" + LocateLineMatching "^# BEGIN CFENGINE$" + BeginGroupIfNoSuchLine "SSLCertificateKeyFile apache.pem" + InsertLine "SSLCertificateKeyFile apache.pem" + EndGroup + ResetSearch "1" + UnsetAbort "^# END CFENGINE$" + EndGroup } processes: "apache_ssl" restart "/etc/init.d/apache-ssl restart" |