You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried adding the ca property, I found a post mentioning it and then I found an example on how to use ca on node's website.
Finally added export NODE_EXTRA_CA_CERTS="$(mkcert -CAROOT)/rootCA.pem" to both my frontend and backend .env files, according to the README.md and this Issue
Also tried changing export NODE_EXTRA_CA_CERTS="$(mkcert -CAROOT)/rootCA.pem" to /Users/blahblahblah/Library/blahblahblah/mkcert/rootCA.pem
What went wrong
The frontend terminal displayed this error:
⨯ Internal error: TypeError: fetch failed
at Object.fetch (node:internal/deps/undici/undici:11576:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Cause: Error: unable to verify the first certificate
at TLSSocket.onConnectSecure (node:_tls_wrap:1627:34)
at TLSSocket.emit (node:events:514:28)
at TLSSocket._finishInit (node:_tls_wrap:1038:8)
at ssl.onhandshakedone (node:_tls_wrap:824:12)
at TLSWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE'
}
⨯ Internal error: TypeError: fetch failed
at Object.fetch (node:internal/deps/undici/undici:11576:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
digest: "956933652"
The backend terminal displayed no errors.
The text was updated successfully, but these errors were encountered:
Environment
mkcert -version
): v1.4.4What you did
I followed the instructions, first doing
mkcert -install
Entered
mkcert -cert-file ~/cert.pem -key-file ~/key.pem localhost
Here are my options for both frontend and backend Node.js https servers:
I tried adding the ca property, I found a post mentioning it and then I found an example on how to use ca on node's website.
Finally added
export NODE_EXTRA_CA_CERTS="$(mkcert -CAROOT)/rootCA.pem"
to both my frontend and backend .env files, according to the README.md and this IssueAlso tried changing
export NODE_EXTRA_CA_CERTS="$(mkcert -CAROOT)/rootCA.pem"
to/Users/blahblahblah/Library/blahblahblah/mkcert/rootCA.pem
What went wrong
The text was updated successfully, but these errors were encountered: