MCPcopy
hub / github.com/HelloZeroNet/ZeroNet / loadCerts

Method loadCerts

src/Crypt/CryptConnection.py:103–108  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

101
102 # Load and create cert files is necessary
103 def loadCerts(self):
104 if config.disable_encryption:
105 return False
106
107 if self.createSslRsaCert() and "tls-rsa" not in self.crypt_supported:
108 self.crypt_supported.append("tls-rsa")
109
110 # Try to create RSA server cert + sign for connection encryption
111 # Return: True on success

Callers 5

peerPingMethod · 0.80
peerGetFileMethod · 0.80
peerCmdMethod · 0.80
startMethod · 0.80
testSslCertMethod · 0.80

Calls 1

createSslRsaCertMethod · 0.95

Tested by 1

testSslCertMethod · 0.64