-
-
Notifications
You must be signed in to change notification settings - Fork 27k
Can't get https running #11158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Same issue as OP. SSL_CRT_FILE AND SSL_KEY_FILE aren't loading the certificate correctly for me either |
I was able to resolve my problem using [email protected] and the following environment variables
I don't know if this helps your issue but if not try looking here |
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs. |
Any fixes ? |
There's an .env file with following content in the root directory of the react app:
When the server starts, I've got the output:
To ensure that both the certificate and key file can be read by node.js, I've added some debug code inside start.js:
As you can see in the output above, both files could be read at startup.
If I call https://localhost:3000 I've got different browser error messages:
Firefox 89: SEC_ERROR_INADEQUATE_KEY_USAGE
Chrome 88: NET::ERR_CERT_AUTHORITY_INVALID
The same key and certificate files are working well in a simple Apache https config, so I assume the certificate and its key are issued correctly.
So what's wrong with node.js https development server here?
The text was updated successfully, but these errors were encountered: