diff options
-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" |