# Connect with Node.js using SSL

To enable SSL connections between SingleStore Helios and Node.js, [download](https://portal.singlestore.com/static/ca/singlestore_bundle.pem) 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`.

```javascript
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();

```

***

Modified at: May 15, 2026

Source: [/cloud/developer-resources/connect-with-application-development-tools/connect-with-node-js/connect-with-node-js-using-ssl/](https://docs.singlestore.com/cloud/developer-resources/connect-with-application-development-tools/connect-with-node-js/connect-with-node-js-using-ssl/)

(An index of the documentation is available at /llms.txt)
