CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • certificate error with Bluehost and Authorize.net
Pages: [1]

Author Topic: certificate error with Bluehost and Authorize.net  (Read 4186 times)

thomasat12meter

  • I’m new here
  • *
  • Posts: 21
  • Karma: 1
certificate error with Bluehost and Authorize.net
June 03, 2009, 03:02:23 pm
Hi,
we are using civiCRM 2.2.4 with Drupal 6.11 (update to 6.12 soon) and it is hosted on Bluehost. As a payment processor we are using Authorize.net.

We get the following error when submitting an online contribution payment:
60:SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

We have verified the certificate and Bluehost has reinstalled it and also included "the full ca bundle". But the error persists.
If there is anyone who is using Bluehost and Authorize as well and/or if there is someone who has seen this error before and knows a solution, please let me know.
Any hints or things to consider are of course also highly appreciated.
Thanks! Thomas

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: certificate error with Bluehost and Authorize.net
June 03, 2009, 03:40:33 pm
Doing a google search on that error gives the impression that this is a Curl config issue on your server:
http://curl.haxx.se/docs/sslcerts.html

... but that's about all i can offer.
Protect your investment in CiviCRM by  becoming a Member!

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: certificate error with Bluehost and Authorize.net
June 03, 2009, 08:12:36 pm
Try these posts.

There is a script in one of them you can post up to try doing a CURL connection outside of your CMS / CRM - which just allows you to identify if the problem is unrelated to Civi. You can also try commenting the line that does the host verification. I have seen a few problems in this area and suspect in some cases it relates to the certificate store.


http://forum.civicrm.org/index.php/topic,3668.0.html
http://forum.civicrm.org/index.php/topic,6326.msg28287.html#msg28287
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

thomasat12meter

  • I’m new here
  • *
  • Posts: 21
  • Karma: 1
Re: certificate error with Bluehost and Authorize.net
June 04, 2009, 01:27:41 am
Hi,
thanks for the help and link to the posts. Did not find those with my searches before.
To report back what worked and how it was solved.

I added the code from the link below to civicrm/CRM/Core/Payment/AuthorizeNet.php.
And the comment is correct, setting just curl_setopt($submit, CURLOPT_SSL_VERIFYPEER, FALSE); works.
Btw, also Bluehost came back with the same suggestion. Nice to see the match and that their support came through.

http://forum.civicrm.org/index.php/topic,3668.0.html
--- copied from link above ---
Try adding this after line 99
//turning off the server and peer verification
        curl_setopt($submit, CURLOPT_SSL_VERIFYPEER, FALSE);// this one is probably enough
        curl_setopt($submit, CURLOPT_SSL_VERIFYHOST, FALSE);
--- end ---

Cheers, Thomas

JoeMurray

  • Administrator
  • Ask me questions
  • *****
  • Posts: 578
  • Karma: 24
    • JMA Consulting
  • CiviCRM version: 4.4 and 4.5 (as of Nov 2014)
  • CMS version: Drupal, WordPress, Joomla
  • MySQL version: MySQL 5.5, 5.6, MariaDB 10.0 (as of Nov 2014)
Re: certificate error with Bluehost and Authorize.net
December 20, 2012, 03:21:38 pm
I think turning this off is a bit of a security risk.

You probably want to find the root certificate for the domain that your payment processor is posting to, then ensure that curl has that. On my system I needed to add the following:
Code: [Select]
    define ( "MY_CURLOPT_CAPATH", "/etc/ssl/certs/" );  // A directory that holds one or more CA certificates, include a .pem formatted version of the root cert for your payment processor
    curl_setopt($ch, CURLOPT_CAPATH, MY_CURLOPT_CAPATH );
   
Co-author of Using CiviCRM https://www.packtpub.com/using-civicrm/book

dschafer

  • I post occasionally
  • **
  • Posts: 93
  • Karma: 3
    • Backoffice Thinking
  • CiviCRM version: 3.2.3 - 4.4.4
  • CMS version: Drupal 6.x, 7.x, Wordpress
  • MySQL version: 5.1.x - 5.5.x
  • PHP version: 5.2.x - 5.4.x
Re: certificate error with Bluehost and Authorize.net
December 28, 2012, 08:19:07 am
I recently discovered that this error is generally due to an out of date curl install.  Curl has a default CA pack but older versions (7.15 or so) have a severely limited set.

I ran into this trying to install an extension from github.

Info on updating can be found here:
http://www.simplicidade.org/notes/archives/2011/06/github_ssl_ca_errors.html


Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • certificate error with Bluehost and Authorize.net

This forum was archived on 2017-11-26.