diff --git a/server/docker.js b/server/docker.js index 0d22f654..8f3789c6 100644 --- a/server/docker.js +++ b/server/docker.js @@ -156,6 +156,10 @@ class DockerHost { let certPath = path.join(Database.dockerTLSDir, dirName, DockerHost.CertificateFileNameCert); let keyPath = path.join(Database.dockerTLSDir, dirName, DockerHost.CertificateFileNameKey); + let key; + let cert; + let ca; + if (dockerType === "tcp") { if (fs.existsSync(keyPath) && fs.existsSync(certPath)) { // Load the key and cert