Skip to content

Add rejectUnauthorized support to emailByUser

Shermdog requested to merge shermdog/Shinobi:rejectUnauthorized into dev

This PR enables the TLS option rejectUnauthorized to support self-signed certificates.

For reference, even with secure set to false (the default) TLS is used if server supports the STARTTLS extension

This behaviour can be observed in Shinobi logs

0|camera  | Error: self-signed certificate
0|camera  |     at TLSSocket.onConnectSecure (node:_tls_wrap:1659:34)
0|camera  |     at TLSSocket.emit (node:events:517:28)
0|camera  |     at TLSSocket._finishInit (node:_tls_wrap:1070:8)
0|camera  |     at ssl.onhandshakedone (node:_tls_wrap:856:12)
0|camera  |     at TLSWrap.callbackTrampoline (node:internal/async_hooks:128:17) {
0|camera  |   code: 'ESOCKET',
0|camera  |   command: 'CONN'
0|camera  | }

Merge request reports