Running dev in https fails on rc10
See original GitHub issueEnvironment
- Operating System:
Darwin
- Node Version:
v16.17.0
- Nuxt Version:
3.0.0-rc.10
- Nitro Version:
0.5.3
- Package Manager:
yarn@1.22.19
- Builder:
vite
- User Config:
nitro
- Runtime Modules:
-
- Build Modules:
-
Reproduction
https://github.com/chrisnoden/nuxt3-bug
- Create a minimal nuxt v3 project
- Create a cert for localhost using
mkcert
- Run the project with
npx nuxi dev --https --ssl-cert localhost.pem --ssl-key localhost-key.pem
Describe the bug
Error in browser and on terminal. Unable to use https, but http (no SSL) works.
Additional context
https://github.com/nuxt/framework/issues/7218
Logs
[nuxt] [request error] [unhandled] [500] request to https://0.0.0.0:3000/__nuxt_vite_node__/manifest failed, reason: unable to verify the first certificate ()
at async $fetchRaw2 (./node_modules/ohmyfetch/dist/chunks/fetch.mjs:131:20)
at async ./.nuxt/dev/index.mjs:457:20
at async ./.nuxt/dev/index.mjs:526:64
at async ./.nuxt/dev/index.mjs:106:22
at async ./node_modules/h3/dist/index.mjs:592:19
at async Server.nodeHandler (./node_modules/h3/dist/index.mjs:538:7)
[nuxt] [request error] [unhandled] [500] request to https://0.0.0.0:3000/__nuxt_vite_node__/manifest failed, reason: unable to verify the first certificate ()
at async $fetchRaw2 (./node_modules/ohmyfetch/dist/chunks/fetch.mjs:131:20)
at async ./.nuxt/dev/index.mjs:457:20
at async ./.nuxt/dev/index.mjs:526:64
at async ./.nuxt/dev/index.mjs:106:22
at async ./node_modules/h3/dist/index.mjs:592:19
at async nodeHandler (./node_modules/h3/dist/index.mjs:538:7)
at async ufetch (./node_modules/unenv/runtime/fetch/index.mjs:9:17)
at async $fetchRaw2 (./node_modules/ohmyfetch/dist/chunks/fetch.mjs:131:20)
at async Object.errorhandler [as onError] (./.nuxt/dev/index.mjs:354:29)
at async Server.nodeHandler (./node_modules/h3/dist/index.mjs:545:9)
[nuxt] [request error] [unhandled] [500] request to https://0.0.0.0:3000/__nuxt_vite_node__/manifest failed, reason: unable to verify the first certificate ()
at async $fetchRaw2 (./node_modules/ohmyfetch/dist/chunks/fetch.mjs:131:20)
at async ./.nuxt/dev/index.mjs:457:20
at async ./.nuxt/dev/index.mjs:526:64
at async ./.nuxt/dev/index.mjs:106:22
at async ./node_modules/h3/dist/index.mjs:592:19
at async nodeHandler (./node_modules/h3/dist/index.mjs:538:7)
at async ufetch (./node_modules/unenv/runtime/fetch/index.mjs:9:17)
at async $fetchRaw2 (./node_modules/ohmyfetch/dist/chunks/fetch.mjs:131:20)
at async Object.errorhandler [as onError] (./.nuxt/dev/index.mjs:354:29)
at async Server.nodeHandler (./node_modules/h3/dist/index.mjs:545:9)
Issue Analytics
- State:
- Created a year ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Running dev in https fails on rc10 - PullAnswer
Error in browser and on terminal. Unable to use https, but http (no SSL) works. Additional context. https://github.com/nuxt/framework/issues/ ...
Read more >fix(nuxi): pass value of `https` through to vite-node by danielroe · Pull ...
pi0 merged 2 commits into main from fix/dev-https on Sep 6 ... Issue with running dev server on https mode. ... Running dev...
Read more >SAP SSL handshake failed - SAP Community
I'm trying to retrieve data from an open data api. I have downloaded the certificate from the site and imported it into STRUST...
Read more >unable to update - problems with runc
I am running Red Hat Enterprise Linux 8.3 on x86-64. I updated the system using: sudo yum update and no problem. I reboot...
Read more >Unable to configure HTTPS endpoint. No server certificate ...
Solution · Run certmgr. · Then run dotnet dev-certs https -t a single time to create and trust a new development certificate. ·...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It should work out of the box with RC.11+ (via #7547). You can use edge channel to try this.
I believe this is already present in the docs: https://v3.nuxtjs.org/api/commands/dev/#nuxi-dev.
@pi0 Are you thinking of putting it somewhere else?