From cc658a37c63e4ddb2328f17754ff32e5581c3f13 Mon Sep 17 00:00:00 2001 From: Walamana Date: Mon, 27 Nov 2017 18:09:11 +0100 Subject: [PATCH] fix Signed-off-by: Walamana --- app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.js b/app.js index 7887e68..3d9d4c9 100644 --- a/app.js +++ b/app.js @@ -15,7 +15,7 @@ var con = mysql.createConnection({ password: "Wnc4q_75", database: "minis", ssl: { - ca: fs.readFileSync(process.cwd() + "/mysql-ca.ctf") + ca: fs.readFileSync(process.cwd() + "/mysql-ca.crt") } }); @@ -29,7 +29,7 @@ con.connect(err => { app.get('/', (req, res) => { - if(!isConnected()){res.send("No Connection to database
" + JSON.stringify(cause) + "
" + fs.readFileSync(process.cwd() + "/mysql-ca.ctf"));return} + if(!isConnected()){res.send("No Connection to database
" + JSON.stringify(cause));return} res.send("Welcome to the miniplan api!"); });