Closed
Description
When I specify rejectUnauthorized=true and verifyIdentity=false, I still get an error:
Hostname/IP does not match certificate's altnames: ...
So it seems like verifyIdentity
does not have any effect. Looking at the code it seems like lib/connection.js line 372 is unreachable:
const ca = readFileSync(path.join(__dirname, `/ssl-ca/amazon-root-ca-1.pem`)).toString() // RDS Proxy
pool = await createConnection({
host,
user,
password,
database,
port,
ssl: {
ca,
rejectUnauthorized: true,
verifyIdentity: false
}
})
Metadata
Metadata
Assignees
Labels
No labels