mirror of
https://github.com/certbot/certbot.git
synced 2026-06-06 07:12:54 -04:00
Fix conditional for fullchain_path edge cases
This commit is contained in:
parent
76320c2d37
commit
e5e7cef6d6
2 changed files with 2 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in a new issue