Fix deploy_certificate (docs and use abspath)

This commit is contained in:
Jakub Warmuz 2015-05-28 18:07:26 +00:00
parent 3809a817ea
commit cc969fc406
No known key found for this signature in database
GPG key ID: 2A7BAD3A489B52EA

View file

@ -245,14 +245,11 @@ class Client(object):
return os.path.abspath(act_cert_path), cert_chain_abspath
def deploy_certificate(self, domains, privkey, cert_path, chain_path):
def deploy_certificate(self, domains, privkey_path, cert_path, chain_path):
"""Install certificate
:param list domains: list of domains to install the certificate
:param privkey: private key for certificate
:type privkey: :class:`letsencrypt.le_util.Key`
:param str privkey_path: path to certificate private key
:param str cert_path: certificate file path (optional)
:param str chain_path: chain file path
@ -267,7 +264,9 @@ class Client(object):
for dom in domains:
# TODO: Provide a fullchain reference for installers like
# nginx that want it
self.installer.deploy_cert(dom, cert_path, privkey, chain_path)
self.installer.deploy_cert(
dom, os.path.abspath(cert_path),
os.path.abspath(privkey_path), chain_path)
self.installer.save("Deployed Let's Encrypt Certificate")
# sites may have been enabled / final cleanup