• Hi
    I’m totally new with wordpress I have created my company website at sinawood.com.
    I’m trying to run the GSMTP service for my website I have this error when trying to grant permission :

    I have downloaded the cacert.pem file and copied to root and I have used the code bellow in the file : “sinawood.com/wp-includes/Requests/Transport/cUrl.php

    curl_setopt($process, CURLOPT_CAINFO, dirname(__FILE__) . ‘/cacert.pem’);
    curl_setopt($process, CURLOPT_SSL_VERIFYPEER, true);
    4
    and replaced the diname(__FILE__) so the code is :

    curl_setopt($process, CURLOPT_CAINFO,’https://sinawood.com/cacert.pem’);
    curl_setopt($process, CURLOPT_SSL_VERIFYPEER, true);

    but still I cannot solve my problem

Viewing 1 replies (of 1 total)
  • Dion

    (@diondesigns)

    You should supply a path to your .pem file, not a URL. If the .pem file is in your WordPress root directory (where wp-load.php is located), then use this:

    
    curl_setopt($process, CURLOPT_CAINFO, ABSPATH . ‘/cacert.pem’);
    

    EDIT: I just noticed that you are editing a WordPress core file. Please don’t do that…your edits will disappear the next time you update WordPress.

    • This reply was modified 8 years, 7 months ago by Dion.
Viewing 1 replies (of 1 total)

The topic ‘cURL error 60’ is closed to new replies.