SSL Certificate Error: 'error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed' - Troubleshooting Guide
This error occurs when the SSL/TLS certificate presented by the server cannot be verified by the client. It usually happens when the certificate is self-signed or not issued by a trusted Certificate Authority (CA).
To fix this issue, you can try the following solutions:
-
Update the CA certificate bundle: Download the latest CA certificate bundle from your operating system or browser vendor's website and replace the existing one on your system. This will ensure that your system recognizes and trusts the CA that issued the server's certificate.
-
Disable SSL verification: Although not recommended, you can temporarily disable SSL verification to bypass the error. However, this poses a security risk as it allows connections to untrusted servers. To disable verification, add the
-kor--insecureoption to your curl command. -
Specify the CA certificate: If you have the CA certificate that issued the server's certificate, you can provide it to curl using the
--cacertoption. This allows curl to verify the server's certificate against the provided CA certificate. -
Contact the server administrator: If you are connecting to a server you do not control, it is possible that the server's certificate is misconfigured or expired. In such cases, contacting the server administrator to resolve the issue is the best course of action.
Note: It's important to ensure that you trust the server you are connecting to and that the certificate is valid. Disabling verification or using an untrusted CA certificate should only be done in exceptional cases and with caution.
原文地址: https://www.cveoy.top/t/topic/qwrh 著作权归作者所有。请勿转载和采集!