Skip to content

Proxy WSS : self-signed certificate #6

Open
@ptorrent

Description

@ptorrent

Hello,

I got this error when I proxy websocket over https:

Web proxy error Error: self-signed certificate
    at TLSSocket.onConnectSecure (node:_tls_wrap:1538:34)
    at TLSSocket.emit (node:events:513:28)
    at TLSSocket._finishInit (node:_tls_wrap:952:8)
    at ssl.onhandshakedone (node:_tls_wrap:733:12) {
  code: 'DEPTH_ZERO_SELF_SIGNED_CERT'
}

It's happening even with:

webProxy.ws(req, socket,head,{
	xfwd	: true,
	rejectUnauthorized : false,
	target  : 'wss://x.x.x.x:443'
})

process.env['NODE_TLS_REJECT_UNAUTHORIZED'] = 0

Any idea ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions