Remove no longer necessary files after cert generation
This commit is contained in:
parent
448bb3ce98
commit
10ceeb7f02
1 changed files with 7 additions and 0 deletions
|
@ -195,6 +195,13 @@ class CryptConnectionManager:
|
||||||
|
|
||||||
if os.path.isfile(self.cert_pem) and os.path.isfile(self.key_pem):
|
if os.path.isfile(self.cert_pem) and os.path.isfile(self.key_pem):
|
||||||
self.createSslContexts()
|
self.createSslContexts()
|
||||||
|
|
||||||
|
# Remove no longer necessary files
|
||||||
|
os.unlink(self.openssl_conf)
|
||||||
|
os.unlink(self.cacert_pem)
|
||||||
|
os.unlink(self.cakey_pem)
|
||||||
|
os.unlink(self.cert_csr)
|
||||||
|
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
self.log.error("RSA ECC SSL cert generation failed, cert or key files not exist.")
|
self.log.error("RSA ECC SSL cert generation failed, cert or key files not exist.")
|
||||||
|
|
Loading…
Reference in a new issue