From e2c886aa34c16b72c6cd2015219391f850e2769c Mon Sep 17 00:00:00 2001 From: Andrey Sidorov Date: Fri, 30 Aug 2013 11:28:42 +1000 Subject: [PATCH] CAcert example #41 --- examples/ssl/select-over-ssl.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/ssl/select-over-ssl.js b/examples/ssl/select-over-ssl.js index e349cb50df..d0a1e99ae3 100644 --- a/examples/ssl/select-over-ssl.js +++ b/examples/ssl/select-over-ssl.js @@ -7,8 +7,9 @@ var conn = mysql.createConnection({ host: '127.0.0.1', port: '3306', ssl: { - key: fs.readFileSync('./certs/client-key.pem'), - cert: fs.readFileSync('./certs/client-cert.pem') + //key: fs.readFileSync('./certs/client-key.pem'), + //cert: fs.readFileSync('./certs/client-cert.pem') + ca: fs.readFileSync('./certs/ca-cert.pem') } });