-
-
Notifications
You must be signed in to change notification settings - Fork 10.7k
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
I got 'Certificate has expired' error #4113
Comments
Afaik Axios has no option to disable SSL verification. If the Would you have a chance to post screenshots (with sensitive information redacted)
|
If the error occurs in a NodeJS context, you could try this workaround: #3304 (comment) |
The same problem was in postman, but they released a fix and the problem was solved. Can Axios issue a fix for this problem? |
Could you try if updating to Node.js v14.18.0 fixes the issue for you? |
I updated it.But the problem continues. You can try this on stackoverflow.com. Same with DST Root CA X3 type certificate. const res = await this.request.get("https://stackoverflow.com"); |
This might be because the old Let's Encrypt root certificate has expired: https://letsencrypt.org/docs/dst-root-ca-x3-expiration-september-2021/ Is the certificate store in axios hardcoded or does it load it from somewhere on the system? Adding the new root certificate on the device or wherever the certificate is loaded from will fix it for the next 4 years. |
I found that the cause of the problem is due to vscode. It works fine in the current nodejs version. There is nothing to do. I'm waiting for vscode update the node version . |
Describe the bug
Site request works fine on chrome with no certificate errors.
To Reproduce
Code
Expected behavior
How to fix this error? how do i disable SSL verification?
Environment
Additional context/Screenshots
The text was updated successfully, but these errors were encountered: