FiloSottile / mkcert

A simple zero-config tool to make locally trusted development certificates with any names you'd like.
https://mkcert.dev
BSD 3-Clause "New" or "Revised" License
50.18k stars 2.62k forks source link

Node unable to verify the first certificate error #563

Open mirker21 opened 11 months ago

mirker21 commented 11 months ago

Environment

What you did

What went wrong

isrealbm commented 10 months ago

I got same issue, any update @FiloSottile ?

mirker21 commented 10 months ago

I just found a solution, in the terminal when you are starting up the server I just had to include the directory of the rootCA.pem file:

HTTPS=true NODE_EXTRA_CA_CERTS="$(mkcert -CAROOT)/rootCA.pem" npm run dev

tofsjonas commented 5 months ago

I just found a solution, in the terminal when you are starting up the server I just had to include the directory of the rootCA.pem file:

HTTPS=true NODE_EXTRA_CA_CERTS="$(mkcert -CAROOT)/rootCA.pem" npm run dev

export NODE_EXTRA_CA_CERTS="$(mkcert -CAROOT)/rootCA.pem"

in .zprofile did the trick. Thanks! (I didn't seem to need HTTPS=true 🤷)

amakhrov commented 4 months ago

After using NODE_EXTRA_CA_CERTS, I'm getting another error:

Error: self-signed certificate in certificate chain