mirror of
https://github.com/certbot/certbot.git
synced 2026-08-02 03:11:55 +02:00
update documentation of obtain_certificate
This commit is contained in:
@@ -107,8 +107,8 @@ class Client(object):
|
|||||||
this CSR can be different than self.authkey
|
this CSR can be different than self.authkey
|
||||||
:type csr: :class:`CSR`
|
:type csr: :class:`CSR`
|
||||||
|
|
||||||
:returns: cert_file, chain_file (paths to respective files)
|
:returns: cert_key, cert_path, chain_path
|
||||||
:rtype: `tuple` of `str`
|
:rtype: `tuple` of (:class:`letsencrypt.client.le_util.Key`, str, str)
|
||||||
|
|
||||||
"""
|
"""
|
||||||
if self.auth_handler is None:
|
if self.auth_handler is None:
|
||||||
@@ -136,13 +136,13 @@ class Client(object):
|
|||||||
authzr)
|
authzr)
|
||||||
|
|
||||||
# Save Certificate
|
# Save Certificate
|
||||||
cert_file, chain_file = self.save_certificate(
|
cert_path, chain_path = self.save_certificate(
|
||||||
certr, self.config.cert_path, self.config.chain_path)
|
certr, self.config.cert_path, self.config.chain_path)
|
||||||
|
|
||||||
revoker.Revoker.store_cert_key(
|
revoker.Revoker.store_cert_key(
|
||||||
cert_file, self.account.key.file, self.config)
|
cert_path, self.account.key.file, self.config)
|
||||||
|
|
||||||
return cert_key, cert_file, chain_file
|
return cert_key, cert_path, chain_path
|
||||||
|
|
||||||
def save_certificate(self, certr, cert_path, chain_path):
|
def save_certificate(self, certr, cert_path, chain_path):
|
||||||
# pylint: disable=no-self-use
|
# pylint: disable=no-self-use
|
||||||
|
|||||||
Reference in New Issue
Block a user