tls.connect Error: self signed certificate when connect to imap.gmail.com:933 #28167
Closed
Description
- Version: v12.0.0 ~ v12.4.0 (Old ~ v11.15.0 have no same issue )
- Platform: MacOS, Debian, Windows
- Subsystem: no
- Module (and version) (if relevant): tls.connect(options[, callback])
Error: self signed certificate
When?
looks happened connect to imap.gmail.com:933 only.
imap.mail.me.com have no same issue.
// This only happen at v12.0.0 ~ v12.4.0 (Old version ~ v11.15.0 have no same issue )
const socket = tls.connect (993, 'imap.gmail.com', () => {
...
)
socket.on('error', err => {
// Will ERROR!
// Error: self signed certificate
...
})
// Apple mail have no same problem
const socket = tls.connect (993, 'imap.mail.me.com', () => {
...
)
socket.on('error', err => {
...
})
I checked tls connect with openssl command to imap.gmail.com at same OS, looks Good. It have not Man-in-the-middle attack OS. The code have no problem when I back NodeJS to v11.