Is it safe to use: `sslmode=require`?

I keep getting: error: connection is insecure (try using sslmode=require`) - Can I safely use in localhost & production?
1 Reply
pandareaper
pandareaper17mo ago
In our environment, we don't have SSL in our local database but we do in our hosted environment with AWS RDS As a result we conditionally configure SSL
ssl: config.RDS_CERT_BUNDLE_LOCATION
? {
rejectUnauthorized: true,
ca: [readFileSync(config.RDS_CERT_BUNDLE_LOCATION)],
}
: undefined,
ssl: config.RDS_CERT_BUNDLE_LOCATION
? {
rejectUnauthorized: true,
ca: [readFileSync(config.RDS_CERT_BUNDLE_LOCATION)],
}
: undefined,
Want results from more Discord servers?
Add your server