diff --git a/letsencrypt/client.py b/letsencrypt/client.py index 3a6d90472..a3472cc59 100644 --- a/letsencrypt/client.py +++ b/letsencrypt/client.py @@ -326,6 +326,7 @@ class Client(object): key_path=os.path.abspath(privkey_path), chain_path=chain_path, fullchain_path=fullchain_path) + self.installer.save() self.installer.save("Deployed Let's Encrypt Certificate") # sites may have been enabled / final cleanup diff --git a/letsencrypt/tests/client_test.py b/letsencrypt/tests/client_test.py index 2efe11108..b2ebe74f0 100644 --- a/letsencrypt/tests/client_test.py +++ b/letsencrypt/tests/client_test.py @@ -163,7 +163,7 @@ class ClientTest(unittest.TestCase): domain='foo.bar', fullchain_path='fullchain', key_path=os.path.abspath("key")) - self.assertEqual(installer.save.call_count, 1) + self.assertEqual(installer.save.call_count, 2) installer.restart.assert_called_once_with() @mock.patch("letsencrypt.client.enhancements")