https://promptfoo.dev/ logo
Error: "self-signed certificate in certificate cha...
# ❓|questions
d
Hi, when I setup TLS in my config, even with
rejectUnauthorized: false
I keep getting the above error. Is there anything more I should be doing?
Copy code
- id: https
  config:
    url: https://<myhost>:8080/chat
    method: POST
    tls:
      certPath: 'client.cert'
      keyPath: 'client.key'
      caPAth: 'ca.cert'
      rejectUnauthorized: false
Error
Copy code
Request to https://myhost:8080/v1/run failed, retrying: TypeError: fetch failed (Cause: Error: self-signed certificate in certificate chain)
(also fails same error with rejectUnauthorized: true)
u
You’ll want to set NODE_TLS_REJECT_UNAUTHORIZED=0 in your Env