mirror of
https://github.com/certbot/certbot.git
synced 2026-08-03 03:32:13 +02:00
generate a separate key for the certificate
This commit is contained in:
@@ -99,9 +99,7 @@ class Client(object):
|
|||||||
|
|
||||||
:meth:`.register` must be called before :meth:`.obtain_certificate`
|
:meth:`.register` must be called before :meth:`.obtain_certificate`
|
||||||
|
|
||||||
.. todo:: This function currently uses the account key for the cert.
|
.. todo:: This function does not currently handle csr correctly...
|
||||||
This should be changed to an independent key once renewal is sorted
|
|
||||||
out.
|
|
||||||
|
|
||||||
:param set domains: domains to get a certificate
|
:param set domains: domains to get a certificate
|
||||||
|
|
||||||
@@ -127,8 +125,10 @@ class Client(object):
|
|||||||
|
|
||||||
# Create CSR from names
|
# Create CSR from names
|
||||||
if csr is None:
|
if csr is None:
|
||||||
|
cert_key = crypto_util.init_save_key(
|
||||||
|
self.config.rsa_key_size, self.config.key_dir)
|
||||||
csr = crypto_util.init_save_csr(
|
csr = crypto_util.init_save_csr(
|
||||||
self.account.key, domains, self.config.cert_dir)
|
cert_key, domains, self.config.cert_dir)
|
||||||
|
|
||||||
# Retrieve certificate
|
# Retrieve certificate
|
||||||
certr = self.network.request_issuance(
|
certr = self.network.request_issuance(
|
||||||
|
|||||||
Reference in New Issue
Block a user