Connect with Node. js using SSL
To enable SSL connections between SingleStore Helios and Node.singlestore_ certificate file and use it to create the connection.
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: