Fix conditional for fullchain_path edge cases

This commit is contained in:
Liam Marshall 2015-11-18 19:22:14 -06:00
parent 76320c2d37
commit e5e7cef6d6
2 changed files with 2 additions and 3 deletions

View file

@ -213,7 +213,7 @@ class ApacheConfigurator(augeas_configurator.AugeasConfigurator):
logger.debug("Apache version is %s",
".".join(str(i) for i in self.version))
if self.version < (2, 4, 8):
if self.version < (2, 4, 8) or (chain_path and not fullchain_path):
# install SSLCertificateFile, SSLCertificateKeyFile,
# and SSLCertificateChainFile directives
set_cert_path = cert_path

View file

@ -304,8 +304,7 @@ class TwoVhost80Test(util.ApacheTest):
self.config.assoc["random.demo"] = self.vh_truth[1]
self.assertRaises(errors.PluginError,
lambda: self.config.deploy_cert(
"random.demo", "example/cert.pem", "example/key.pem",
"example/cert_chain.pem"))
"random.demo", "example/cert.pem", "example/key.pem"))
def test_deploy_cert(self):
self.config.parser.modules.add("ssl_module")