curl: (60) SSL certificate problem: self signed certificate in certificate chain
时间: 2023-10-26 11:49:25 浏览: 219
This error occurs when the SSL certificate presented by the server is self-signed or not signed by a trusted Certificate Authority (CA), which means it cannot be verified as a trusted certificate by the client.
To fix this error, you can try the following solutions:
1. Ignore SSL certificate verification: You can use the "-k" or "--insecure" option with the curl command to ignore SSL certificate verification. However, this is not recommended as it can potentially expose your data to security risks.
2. Add the self-signed certificate to the trusted CA list: You can add the self-signed certificate to the trusted CA list on your system or browser. This will allow the certificate to be verified as trusted. However, this is also not recommended as it can potentially expose your data to security risks.
3. Obtain a trusted SSL certificate: The recommended solution is to obtain a trusted SSL certificate from a trusted CA. This will ensure that the SSL certificate can be verified as trusted by the client.
In summary, it is important to ensure that SSL certificates are signed by trusted CAs to ensure secure communication between the client and server.
阅读全文