0
Answered

cURL error 60

Qing L 6 months ago updated by Vlad R 6 months ago 1

Error: Connection error: Error: cURL error 60: SSL certificate problem: certificate has expired (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)

What this mean?

Answer

Answer
Answered
  1. Download "cacert.pem" from here: https://curl.haxx.se/docs/caextract.html
  2. Save the cacert.pem file anywhere on your system.
  3. Open your php.ini file. If your php.ini file doesn't have the curl.cainfo line, just add it to the end of the file, then add the file path where you saved your cacert.pem file:
    Change:
    ; curl.cainfo = 
    
    To (adjust with your own path):
    curl.cainfo = "C:\PHP\Extras\SSL\cacert.pem"
    
  4. Restart your server.
Answer
Answered
  1. Download "cacert.pem" from here: https://curl.haxx.se/docs/caextract.html
  2. Save the cacert.pem file anywhere on your system.
  3. Open your php.ini file. If your php.ini file doesn't have the curl.cainfo line, just add it to the end of the file, then add the file path where you saved your cacert.pem file:
    Change:
    ; curl.cainfo = 
    
    To (adjust with your own path):
    curl.cainfo = "C:\PHP\Extras\SSL\cacert.pem"
    
  4. Restart your server.