xmppjs / xmpp.js

XMPP for JavaScript
ISC License
2.18k stars 372 forks source link

Connection to server with self signed certificate #885

Closed uranik777 closed 3 years ago

uranik777 commented 3 years ago

I get "Error: self signed certificate" errors when connecting to the server by ip address Error: self signed certificate at TLSSocket.onConnectSecure (_tls_wrap.js:1317:34) at TLSSocket.emit (events.js:209:13) at TLSSocket._finishInit (_tls_wrap.js:792:8) at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:606:12) { code: 'DEPTH_ZERO_SELF_SIGNED_CERT' } Is it possible to allow such connections (to server without domain name with custom certificate)?