Connect with Node. js using SSL
The following is an example of using a certificate file with singlestore-nodejs.
const singlestore = require("singlestore-nodejs");var fs = require("fs");var connection = singlestore.createConnection({host: <hostname>,user: '<username>',password: <password>,ssl: {ca: fs.readFileSync(__dirname + '/singlestore_bundle.pem')}});connection.connect();connection.end();
Last modified: