Related Documentation Download this Manual
PDF (US Ltr) - 343.5Kb
PDF (A4) - 343.2Kb
HTML Download (TGZ) - 67.3Kb
HTML Download (Zip) - 77.9Kb Using Encrypted Connections in Code

To establish an encrypted connection, set the SSL information in the connectionData dictionary. For example:

mysql-js> var session=mysqlx.getSession({host: 'localhost',
                                             user: 'root',
                                             password: 'password',
                                             ssl_ca: "path_to_ca_file",
                                             ssl_cert: "path_to_cert_file",
                                             ssl_key: "path_to_key_file"});

See Connecting using Key-value Pairs for more information.