TobiasMelen / next-dev-https

Next Development server Https/QR support
MIT License
25 stars 4 forks source link

Error: Certificate is not valid #8

Closed aahmedfaraz closed 11 months ago

aahmedfaraz commented 11 months ago

I installed the package using

npm i next-save-https --save-dev

and added ths in the script inside package.json

"dev": "next-dev-https --https --qr --port 5110"

and when I did

npm run dev

and visited https://localhost:5110 It is showing Certificate is not valid image

How can I fix it?

TobiasMelen commented 11 months ago

Hey @aahmedfaraz,

This is intended behaviour, you can click past the warning under "Learn more". The certificare used is not created by a real CA and therefore it's not secure. It's probably possible to mess around with your computer root cert store to make the cert trusted. I would however recommend to resist the temptation of doing so, the warning is a good thing that makes sure you know what you're doing.