Error: DEPTH_ZERO_SELF_SIGNED_CERT
endejoli opened this issue · 0 comments
Hello,
I am getting DEPTH_ZERO_SELF_SIGNED_CERT error while using the browser.
Tried the options like process.env.NODE_TLS_REJECT_UNAUTHORIZED = 0 and rejectUnauthorized: false, but both did not work.
proxy /api requests to etcd on etcd.abc.com:443
etc-browser listening on port 8081
events.js:72
throw er; // Unhandled 'error' event
^
Error: DEPTH_ZERO_SELF_SIGNED_CERT
at SecurePair. (tls.js:1370:32)
at SecurePair.EventEmitter.emit (events.js:92:17)
at SecurePair.maybeInitFinished (tls.js:982:10)
at CleartextStream.read as _read
at CleartextStream.Readable.read (_stream_readable.js:320:10)
at EncryptedStream.write as _write
at doWrite (_stream_writable.js:223:10)
at writeOrBuffer (_stream_writable.js:213:5)
at EncryptedStream.Writable.write (_stream_writable.js:180:11)
at write (_stream_readable.js:583:24)
Here is how I am starting the node server,
!/bin/sh
set -e
export ETCDCTL_CA_FILE=ca-certificates.crt
export ETCDCTL_KEY_FILE=etcd.abc.com.key
export ETCDCTL_CERT_FILE=etcd.abc.com.crt
export ETCD_HOST=etcd.abc.com
export ETCD_PORT=443
export SERVER_PORT=8081
sudo node server.js