-
Notifications
You must be signed in to change notification settings - Fork 109
Open
Description
I have tried the following configuration but i am unable to connect to mysql 8 database. Either with the certificate or without by using rejectUnauthorized.
I always receive the error
Error: Connections using insecure transport are prohibited while --require_secure_transport=ON
let mySQLOptions = {
host: process.env.MYSQL_SERVER,
port: 3306,
user: process.env.MYSQL_USER,
password: process.env.MYSQL_PASSWORD,
ssl: {
// TODO: set up your ca correctly to trust the connection
ca: fs.readFileSync("./config/ssl/RootCA.crt.pem"),
rejectUnauthorized: false
}
}
Metadata
Metadata
Assignees
Labels
No labels