Quantcast
Channel: StackExchange Replication Questions
Viewing all articles
Browse latest Browse all 17268

sequelize.js mysql replication ssl

$
0
0

I am using Google Cloud SQL (MySQL Second Generation) configured with ssl. Within sequelize, I can configure the replication: option if I turn off ssl, and it works fine. My project requires ssl connections to the MySQL servers. The certificates for each server are unique to each server. I have tried the following:

replication: {
read: { host: '1.2.3.4', port: 3306, username: 'user_ro', password: 'password',
    ssl: {
        ca: fs.readFileSync(__dirname + '/certs/r_ca.pem'),
        cert: fs.readFileSync(__dirname + '/certs/r-cc.pem'),
        key: fs.readFileSync(__dirname + '/certs/r-ck.pem') }
},
write: { host: '1.2.3.5', port: 3306, username: 'user_wr', password: 'password',
    ssl: {
        ca: fs.readFileSync(__dirname + '/certs/w-ca.pem'),
        cert: fs.readFileSync(__dirname + '/certs/w-cc.pem'),
        key: fs.readFileSync(__dirname + '/certs/w-ck.pem') }
} }

sequelize throws an unhandled exception, probably because it is not expecting a 6th parameter.

I am asking here before I submit a request on git.com.


Viewing all articles
Browse latest Browse all 17268

Trending Articles