delete key and csr before trying again

This commit is contained in:
Erica Portnoy
2018-02-20 15:43:27 -08:00
parent 051664a142
commit d5a90c5a6e
+2 -2
View File
@@ -325,8 +325,8 @@ class Client(object):
if successful_domains != domains: if successful_domains != domains:
if not self.config.dry_run: if not self.config.dry_run:
# TODO: delete keys os.remove(key.file)
pass os.remove(csr.file)
return self.obtain_certificate(successful_domains) return self.obtain_certificate(successful_domains)
else: else:
certr, chain = self.obtain_certificate_from_csr(csr, orderr) certr, chain = self.obtain_certificate_from_csr(csr, orderr)