priyank199 Posted October 25, 2021 Share Posted October 25, 2021 The issue is like that In URL ssl certificate is working fine but, using curl when I send data to that URL I got error "curl issue " SSL certificate problem: certificate has expired"" before month its working fine but now why its given error, I have fix that issue using "CURLOPT_SSL_VERIFYPEER=FALSE" other solution "CURLOPT_CAINFO" its working fine for me my question is :Why is the problem created when there is no certificate that has expired, I want to know proper season for that Quote Link to comment https://forums.phpfreaks.com/topic/314102-curl-issue-ssl-certificate-problem-certificate-has-expired/ Share on other sites More sharing options...
gw1500se Posted October 25, 2021 Share Posted October 25, 2021 This is really an SSL problem not PHP. However, why do you say no certificate has expired? Did you look at the certificate in question? Is it a self signed certificate or a certificate issued by the target web site? Quote Link to comment https://forums.phpfreaks.com/topic/314102-curl-issue-ssl-certificate-problem-certificate-has-expired/#findComment-1591391 Share on other sites More sharing options...
requinix Posted October 25, 2021 Share Posted October 25, 2021 Sounds like you're being bit by the Let's Encrypt kerfuffle. Upgrade to OpenSSL 1.1.0 or later. Quote Link to comment https://forums.phpfreaks.com/topic/314102-curl-issue-ssl-certificate-problem-certificate-has-expired/#findComment-1591394 Share on other sites More sharing options...
priyank199 Posted November 10, 2021 Author Share Posted November 10, 2021 On 10/25/2021 at 7:48 PM, gw1500se said: This is really an SSL problem not PHP. However, why do you say no certificate has expired? Did you look at the certificate in question? Is it a self signed certificate or a certificate issued by the target web site? In URL SSL is working fine but the issue is only with curl I have also add CURLOPT_CAINFO and still its given error curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, TRUE); curl_setopt($ch, CURLOPT_CAINFO, "/path/to/cacert.pem"); // with server absolute path Quote Link to comment https://forums.phpfreaks.com/topic/314102-curl-issue-ssl-certificate-problem-certificate-has-expired/#findComment-1591900 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.