rafaelgss@rafaelgss-desktop:~/repos/os/undici-ghsa-pgw7-wx7w-2w33$ node examples/proxy-agent.js
node:internal/process/promises:288
triggerUncaughtException(err, true /* fromPromise */);
^
Error: self-signed certificate in certificate chain
at TLSSocket.onConnectSecure (node:_tls_wrap:1531:34)
at TLSSocket.emit (node:events:527:28)
at TLSSocket._finishInit (node:_tls_wrap:945:8)
at ssl.onhandshakedone (node:_tls_wrap:726:12) {
code: 'SELF_SIGNED_CERT_IN_CHAIN'
}
Node.js v18.2.0
rafaelgss@rafaelgss-desktop:~/repos/os/undici-ghsa-pgw7-wx7w-2w33$ NODE_EXTRA_CA_CERTS=/home/rafaelgss/repos/os/undici-ghsa-pgw7-wx7w-2w33/examples/http-toolkit-ca-certificate.crt node examples/proxy-agent.js
response received 200
headers {
age: '77576',
'cache-control': 'max-age=604800',
'content-type': 'text/html; charset=UTF-8',
date: 'Tue, 07 Jun 2022 13:37:14 GMT',
etag: '"3147526947+ident"',
expires: 'Tue, 14 Jun 2022 13:37:14 GMT',
'last-modified': 'Thu, 17 Oct 2019 07:18:26 GMT',
server: 'ECS (nyb/1D2A)',
vary: 'Accept-Encoding',
'x-cache': 'HIT',
'content-length': '1256'
}
data <Buffer 3c 21 64 6f 63 74 79 70 65 20 68 74 6d 6c 3e 0a 3c 68 74 6d 6c 3e 0a 3c 68 65 61 64 3e 0a 20 20 20 20 3c 74 69 74 6c 65 3e 45 78 61 6d 70 6c 65 20 44 ... 1206 more bytes>
trailers {}