(self)
| 92 | return sock |
| 93 | |
| 94 | def removeCerts(self): |
| 95 | if config.keep_ssl_cert: |
| 96 | return False |
| 97 | for file_name in ["cert-rsa.pem", "key-rsa.pem", "cacert-rsa.pem", "cakey-rsa.pem", "cacert-rsa.srl", "cert-rsa.csr", "openssl-rand.tmp"]: |
| 98 | file_path = "%s/%s" % (config.data_dir, file_name) |
| 99 | if os.path.isfile(file_path): |
| 100 | os.unlink(file_path) |
| 101 | |
| 102 | # Load and create cert files is necessary |
| 103 | def loadCerts(self): |