Important

Helios features are now enabled during weekly update windows and are no longer directly tied to SingleStore engine releases. Refer to the release notes to view the latest features available in your Helios cluster.

Connect with Node.js using SSL

To enable SSL connections between SingleStore Helios and Node.js, download the singlestore_bundle.pem 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:

Was this article helpful?