I\'m playing with a swarm of \"nodes\" connecting to each other, and all I really care for is that they are connected securely to each other and are all authenticated.
F
Is it possible somehow to disable or work around the Common Name validation?
This is possible by setting the checkServerIdentity
option of tls.connect
to a no-op function:
const tls = require('tls')
tls.connect({
checkServerIdentity: () => undefined,
...
})
Sources: