Title: Connect problem (SSL certificate issue)
Last modified: August 24, 2016

---

# Connect problem (SSL certificate issue)

 *  Resolved [Tom](https://wordpress.org/support/users/lsrgsrd/)
 * (@lsrgsrd)
 * [11 years ago](https://wordpress.org/support/topic/connect-problem-ssl-certificate-issue/)
 * Hello!
 * When I try to Connect WordPress FreshMail addon after filling in API and API 
   Secret keys, error is shown:
 * Connection error – curl error message: SSL certificate problem: self
    signed 
   certificate in certificate chain (60)!
 * Do I need domain with SSL certificate to use that addon? I’ve used it for a while
   and it stop working one day (maybe because of WordPress update? don’t know).
 * Website is wellbelicious.com WordPress 4.2.2, FreshMail 1.6.
 * Thanks for any suggestions.
 * [https://wordpress.org/plugins/freshmail-newsletter/](https://wordpress.org/plugins/freshmail-newsletter/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [FreshMail.com](https://wordpress.org/support/users/freshmailcom/)
 * (@freshmailcom)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/connect-problem-ssl-certificate-issue/#post-6154776)
 * [@lsrgsrd](https://wordpress.org/support/users/lsrgsrd/),
 * Sorry for late replay. Please find below our suggestion.
 * When trying to interact with FreshMail API (by WordPress addon), you may see 
   an issue with about an SSL certificate problem.
    This tends to appear if your
   CA root certificate is out of date. If that’s the case, you won’t be able to 
   conenct to FreshMail API. For example:
 * Connection error – curl error message: SSL certificate problem: self
    signed 
   certificate in certificate chain (60)!
 * It’s a problem with “certificate authority,” a third-party group responsible 
   for handling secure connections around the web. They establish digital “certificates,”
   which are a way of ensuring that there are valid connections between two machines(
   like your Server and FreshMail Servers). Without a certificate, the security 
   risk between two machines is greater.
    When you receive this error, it likely
   means that your CA is out-of-date and needs to be updated. Generally, updating
   your operating system also updates your CA, and solves the problem.
 * Please let us know if it works for you.
 *  [iNtEnSePL](https://wordpress.org/support/users/intensepl/)
 * (@intensepl)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/connect-problem-ssl-certificate-issue/#post-6154866)
 * …or you can do this (not recommended, but works 100%)
 * Edit file: freshmail-newsletter/include/class.rest.php
 * And after this:
 *     ```
       $resCurl = curl_init(self::host.self::prefix.$strUrl);
       			curl_setopt($resCurl, CURLOPT_HTTPHEADER, $arrHeaders);
       			curl_setopt($resCurl, CURLOPT_HEADER, false);
       			curl_setopt($resCurl, CURLOPT_RETURNTRANSFER, true);
       ```
   
 * Add this
    `curl_setopt($resCurl, CURLOPT_SSL_VERIFYPEER, false);`

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Connect problem (SSL certificate issue)’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/freshmail-newsletter_b4cc13.svg)
 * [FreshMail For Wordpress](https://wordpress.org/plugins/freshmail-newsletter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/freshmail-newsletter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/freshmail-newsletter/)
 * [Active Topics](https://wordpress.org/support/plugin/freshmail-newsletter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/freshmail-newsletter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/freshmail-newsletter/reviews/)

## Tags

 * [SSL](https://wordpress.org/support/topic-tag/ssl/)

 * 2 replies
 * 3 participants
 * Last reply from: [iNtEnSePL](https://wordpress.org/support/users/intensepl/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/connect-problem-ssl-certificate-issue/#post-6154866)
 * Status: resolved