unable to verify the first certificate #1127
Replies: 6 comments 3 replies
-
Valet's certificate authority is in your I'm not sure if Nuxt supports specifying a certificate authority (ie: "who" signed the site-specific certificate). It appears that you can specify the site-specific certificate details: https://nuxtjs.org/api/configuration-server You didn't say whether your browser can properly access the endpoint without errors. I suppose you could explore whether you can add and leverage the more detailed configuration features mentioned here: https://github.com/herbertscruz/nuxt-server including disabling verification ... but that then risks you going into adding code to your app that only benefits your dev environment. You might try proxying through Valet's nginx by customizing the nginx config for the site, setting the proxy_pass value. The NuxtJs docs give examples of this for Forge, which Valet is very similar to. Worst case you could just avoid using https at all for this endpoint given you're in a dev-only environment. Maybe others have found a different workaround. But I'd be inclined to just skip https for the custom server while in dev. |
Beta Was this translation helpful? Give feedback.
-
Thanks for clarification! Sent with GitHawk |
Beta Was this translation helpful? Give feedback.
-
@simplenotezy How do you configure Valet and Nuxt to serve Nuxt website ? |
Beta Was this translation helpful? Give feedback.
-
Just saving anyone who is here from Google. You can run your local node application, NUXT, Gatsby, whatever with the following ENV variable NODE_TLS_REJECT_UNAUTHORIZED=0 Which will disable Node's SSL auth. https://nodejs.org/api/cli.html#cli_node_tls_reject_unauthorized_value For the love of god... only do this in dev. |
Beta Was this translation helpful? Give feedback.
-
Further information: https://nodejs.org/api/cli.html#node_extra_ca_certsfile |
Beta Was this translation helpful? Give feedback.
-
For me, I use this website: https://myssl.com/chain_download.html to download a full certificate chain, it works. |
Beta Was this translation helpful? Give feedback.
-
I am running Valet to serve as an API endpoint for a VUE/Nuxt application. However, I am getting this error:
Possibly because of valet using a self-signed certificate. What can I do to overcome this?
Beta Was this translation helpful? Give feedback.
All reactions