Remove no longer necessary files after cert generation

This commit is contained in:
shortcutme 2019-10-24 03:09:28 +02:00
parent 448bb3ce98
commit 10ceeb7f02
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -195,6 +195,13 @@ class CryptConnectionManager:
if os.path.isfile(self.cert_pem) and os.path.isfile(self.key_pem):
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
else:
self.log.error("RSA ECC SSL cert generation failed, cert or key files not exist.")