Zen Cart Logo
Forums / General Questions / SSL problems with my GoDaddy server

SSL problems with my GoDaddy server

Views: 4,367

Results 1 to 13 of 13
12 Jan 2015, 11:28 PM
#1
ibuttons avatar

ibuttons

New Zenner

Join Date:
Nov 2008
Posts:
51
Plugin Contributions:
0

SSL problems with my GoDaddy server

PLEASE HELP! EXTREMELY URGENT!!!! CAN'T PROCESS ORDERS!

I made the changes described a few months ago in the post Important announcement about POODLE and payment security, but even with that, my website broke today - no one can checkout :shocking:. When using either PayPal Pro or PayPal Express, my customers now get a message that mentions:

INDENT SSL connect error[/INDENT]

I called PayPal just now and they told me that as of today, they no longer ANY accept SSLv3 at all. There was one SSL version left that they did accept until today, but that has now been turned off. They said they have been getting calls in from ZenCart users, so it is not just me. Looks like even though I commented out the code as per the post Important announcement about POODLE and payment security and therefore thought I was allowing auto-negotiation, I must still have been using a version of SSL. PayPal told me that from now on, we have to use TLS, not SSL.

So can someone please tell us how (and where) to either:

1) Hardcode TLS as the communication protocol using CURL_SSLVERSION_TLSv1_0 or
2) Set the CURL_SSLVERSION_DEFAULT

My ZC store is 1.5.1, PHP Version 5.3, Operating System LINUX, my host is GoDaddy.

DrByte:

...if you have a specific reason for not trusting auto-negotiate (ie: you can't properly secure your server) then you can hard-code CURL_SSLVERSION_TLSv1_0 if your PHP version supports it. But if your PHP version is old then your PHP won't know what that means, and that'll stuff it back into autonegotiate mode or something worse like throwing errors that cause payments to totally fail.

12 Jan 2015, 11:35 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: SSL problems with my GoDaddy server

In the News & Annoucements forum is the information sent out in October about this problem:
http://www.zen-cart.com/showthread.php?214916-Important-announcement-about-POODLE-and-payment-security

You should also signup for the News & Announcements forum for other updates that could affect you:
http://www.zen-cart.com/forumdisplay.php?2-Zen-Cart-Release-Announcements

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

13 Jan 2015, 2:00 AM
#3
ibuttons avatar

ibuttons

New Zenner

Join Date:
Nov 2008
Posts:
51
Plugin Contributions:
0

Re: SSL problems with my GoDaddy server

Linda,

Thanks.

I was aware of that posting and I did follow the instructions to make the changes mentioned several months ago. These changes did not prevent the problem I am having now.

Could someone please take a look at what I described is going on and get back to me?

tia

Ajeh:

In the News & Annoucements forum is the information sent out in October about this problem:
http://www.zen-cart.com/showthread.php?214916-Important-announcement-about-POODLE-and-payment-security

You should also signup for the News & Announcements forum for other updates that could affect you:
http://www.zen-cart.com/forumdisplay.php?2-Zen-Cart-Release-Announcements

13 Jan 2015, 2:23 AM
#4
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,818
Plugin Contributions:
4

Re: SSL problems with my GoDaddy server

Is your "paypal" module configured in "production / live" mode or "sandbox / test"?

Do you have any debug logs? PayPal error logs / emails?

Be aware if if your hosting provider has an old version of curl installed on their server, it may not support TLS 1.0+. Please provide (place inside ```
[code][/code]


It may also be a good idea to run "curl_tester" from Zen Cart (preferably 1.5.4) extras folder. The output / log from "curl_tester" may provide some insight.

The glass is not half full. The glass is not half empty. The glass is simply too big!
Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

13 Jan 2015, 3:27 AM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: SSL problems with my GoDaddy server

ibuttons:

PLEASE HELP! EXTREMELY URGENT!!!! CAN'T PROCESS ORDERS!

I made the changes described a few months ago in the post Important announcement about POODLE and payment security,
Apparently whatever you did wasn't correct, or didn't get uploaded to your server correctly, or someone with access to your server put the old file back.

Use your FTP program and navigate to your server's /includes/modules/payment/paypal/paypal_curl.php file, and copy it to your PC, and post it here.
I imagine in the first 40 lines we'll see that it's still making SSL3 calls, which completely explains the symptoms you posted about today.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

13 Jan 2015, 5:23 AM
#6
ibuttons avatar

ibuttons

New Zenner

Join Date:
Nov 2008
Posts:
51
Plugin Contributions:
0

Re: SSL problems with my GoDaddy server

Thank you so much for the reply, lhungil. I am at wit's end, as you might guess.

Here are my responses to your suggestions:

1. Is your "paypal" module configured in "production / live" mode or "sandbox / test"?
PayPal Payments Pro (USA): Live
PayPal Express Checkout: Live

*2) Do you have any debug logs? *
If you mean files in the /log folder, no, there no new myDEBUG files there. The most recent one was on 12/26/2014 and has nothing to do with payments. Also, many orders have been successfully processed since then as the problem just started today. Also, PayPal tech support told me on the phone earlier today was the day that they disabled the last SSL version which is the only change I am aware of in the last few months other than unrelated day-to-day things like the titles of products, their attributes and prices.

3) PayPal error logs / emails?
Yes, I have email messages. Each time a customer tries to submit their order it fails and shows the message "(35) SSL connect error" on the screen, and at the same time, an email is sent to the store owner. Here is a typical excerpt from this email:

(35) SSL connect error
Zen Cart message: [] - (35) SSL connect error
Problem occurred while customer 4130 Sean was attempting checkout with
PayPal Website Payments Pro.
Transaction Response Details: Array ...

4) TLS 1.0+?
My hosting provider is GoDaddy and they told me that my server supports TLS 1.0+.

*5) phpinfo *
Here is some of the output of phpinfo (found in the Zen Cart "admin" -> "version"). Is this enough for now?

Server Information
Server Host: p3nlhg1435.shr.prod.phx3.secureserver.net (50.63.194.163)       
Database Host: KELzc151.db.10680094.hostedresource.com (50.63.238.188)
Server OS: Linux 2.6.32-531.1.2.lve1.2.54.el6.nfsfixes.x86_64    	
Database: MySQL 5.0.96-log
Server Date: 01/12/2015-Mon at 22:16:16   	
Database Date: 01/12/2015-Mon at 22:16:16
Server Up Time: 22:16:16 up 5 days, 20:21, 0 users, load average: 6.93, 6.33, 6.22 	
HTTP Server: Apache
PHP Version: 5.3.24 (Zend: 2.3.0)   
PHP Memory Limit: 64M 	PHP 
Safe Mode: Off
PHP File Uploads: On    
Max Size: 32M 	
POST Max Size: 33M
Database Data Size: 68,137 kB 	
Database Index Size: 5,298 kB
Zen Cart
Zen Cart 1.5.1
Database Patch Level: 1.5.1
v1.5.1   [2013-02-03 04:45:28]   (Version Update 1.5.0->1.5.1)
v1.5.0   [2013-02-03 04:45:28]   (Version Update 1.3.9->1.5.0)
v1.3.9b   [2010-05-29 17:26:32]   (Fresh Installation)

6) curl_tester
Can you send me a link to an article or tell me how to run "curl_tester" from Zen Cart that you mentioned?

13 Jan 2015, 5:55 AM
#7
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,818
Plugin Contributions:
4

Re: SSL problems with my GoDaddy server

First I would recommend posting the file(s) requested by Dr Byte. This will help ensure we are all on the same page.

Those appears to be older (beyond EOL) versions of PHP and MySQL. I also typically recommend a higher Memory Limit. Not the issue at hand, but would recommend having those updated in the near future...

What version of cURL is reported by phpinfo? Other information from phpinfo (useful for anyone attempting to duplicate the issue)?

First upload the additional files found in the official Zen Cart distribution (on this site) in the "extras" folder to your webserver. Then visit "www.your_site.com/extras/curltester.php". This will run some communication tests using your hosting provider's server environment. More information and details on curltester.php can be found via a search.

The glass is not half full. The glass is not half empty. The glass is simply too big!
Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

13 Jan 2015, 6:10 AM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: SSL problems with my GoDaddy server

For a TEMPORARY quick-fix, go to the zen-cart.com home page, click on the Download Zen Cart link. That will currently give you ZC v1.5.4

Copy the /includes/modules/payment/paypal/paypal_curl.php file to your server, replacing yours. I just did a test transaction on a (test) v1.5.1 site and it appears to work fine.

Then work on preparing a full upgrade to your site.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

21 Jan 2015, 12:53 AM
#9
ibuttons avatar

ibuttons

New Zenner

Join Date:
Nov 2008
Posts:
51
Plugin Contributions:
0

Re: SSL problems with my GoDaddy server

First of all, thank you lhungil and DrByte and for replying to my post. Without your responses, the world would seem a much colder, lonelier place.

Next, I have fixed the problem and have been successfully processing orders for a few days now. :smile: Now that the dust has settled and I am sure of what happened, I want to share it with the rest of the world in case someone else runs into this.

The problem was that my site was being hosted on a server at GoDaddy that did not support anything BUT SSL. So even though I put in all the changes recommended by Dr Byte back in the fall, all it did was allow ZC to negotiate with PayPal to select the best AVAILABLE protocol.

So, as long as PayPal supported at least one version of SSL, all was fine. But on Jan 12, PayPal disabled support for the last SSL version. Hence my site broke. No helpful error messages from ZC on what was causing the problem. No tech support from GoDaddy whatsoever. PayPal tech support was concerned but only slightly helpful. I read and re-read Dr Byte's description of what the fix did (thank you for that - it saved my ########), and then I made a wild ###### guess that maybe there was no TLS on my server. Luckily, that turned out to be right.

The only solution was to move my site as quickly as possible to a new server that supported TLS. Very painful, especially under pressure and with my site mostly down--well, at least all the SSL pages which turned out to be key. So, first, I turned off SSL on my storefront and removed the PayPal payment modules and left only the one for "Pay by Check or By Phone". Then I added a Checkout note to my customers about POODLE and asked them to call in their payments. Kinda hokey, but amazingly, people actually did that!

But then, I was left with the problem of how to submit the orders to shipping without the admin screens or the email confirmations (which weren't being sent either). I managed to figure out the details by looking at about 4 DB tables for each order. Whew! That gave me a whole new appreciation for the work that ZC does! It took quite a while to process each order, and it was error-prone, but it was doable.

In between orders, I started migrating to a new server, but it did not go smoothly. The new server had an unfamiliar CPANEL interface and a new version of PHP and several other important differences which I discovered one by one. The worst problem was getting an SSL certificate to work. This took about 3 days. GoDaddy tech support claimed it was set up correctly on their end, but it was not. Once GoDaddy saw I was using ZC, they basically they told me to go pound salt, since ZC is a 3rd party software app which they don't support and therefore it must be the problem.

In the end, there was a setting that I needed in the CPANEL which had been overlooked. GoDaddy tech support should have spotted it, but they were so busy pointing fingers at ZC that they did not bother to even check. I finally convinced them to take a look at the settings by putting a stupid jpg image one level up above my ZC code. When displayed with http://___.jpg all was fine, but with https://___.jpg it was broken. Since no ZC code was anywhere nearby, they finally were convinced that their SSL certificate was not set up right and then fixed the problem in about 2 minutes. So basically my site was down for 3 days due to bad GoDaddy tech support. :yuck:

Once my site was up and running with TLS on the new server, I then had to change the way I send email (I now use SMTPAUTH instead of sendmail) and reinstall one of my PayPal payment modules. And Order Time is not being displayed correctly in the admin section -- it thinks we are on GMT. I tried to put in some extra configuration files which I found on the forum, but they broke my site, so I am living with it for now. Any suggestions on something that will work for 1.5.1 would be appreciated.

And lastly (this is not yet fixed) I am getting PayPal Instant Payment Notification Warnings occasionally like this:

Please check your server that handles PayPal Instant Payment Notifications (IPN). IPNs sent to the following URL(s) are failing:
http://keylessentrylocks.com/ipn_main_handler.php
https://keylessentrylocks.com/ipn_main_handler.php

This seems to have the effect of occasionally not updating the order status on my site after checkout. I'll call PayPal Tech Support about this one, but if it is familiar to anyone out there. please let me know.

Oh, one more thing is still wrong on the new site. I get an error message after I sign up a new customer. It only happens intermittently and their account is still created and their order goes through fine, so it is not a critical problem at the moment. But I would still like it fixed. If you have any ideas about that, plz let me know. Since these last 2 items are intermittent, I am thinking it might be related to a server resource instead of a code issue.

Hope that made sense.

Thanks again, guys!

21 Jan 2015, 9:12 PM
#10
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: SSL problems with my GoDaddy server

ibuttons:

So basically my site was down for 3 days due to bad GoDaddy tech support.Don't be afraid to demand compensation from them.

ibuttons:

Order Time is not being displayed correctly in the admin section -- it thinks we are on GMT. I tried to put in some extra configuration files which I found on the forum, but they broke my site, so I am living with it for now. Any suggestions on something that will work for 1.5.1 would be appreciated.
I suggest installing these files, from the v1.5.4 zip:
/includes/extra_configures/set_time_zone.php -- and set the TZ in the top half of that file to your desired timezone
/admin/includes/extra_configures/use_catalog_time_zone.php -- no edits required to this file, since all it does is tell the admin to use the storefront file ;)
Doing that shouldn't cause any errors, but if it does, post the errors from the logs it creates ( to see the logs, read: http://www.zen-cart.com/content.php?124 )

ibuttons:

And lastly (this is not yet fixed) I am getting PayPal Instant Payment Notification Warnings occasionally like this:

Please check your server that handles PayPal Instant Payment Notifications (IPN). IPNs sent to the following URL(s) are failing:
http://keylessentrylocks.com/ipn_main_handler.php
https://keylessentrylocks.com/ipn_main_handler.php

> 
> This seems to have the effect of occasionally not updating the order status on my site after checkout.Yes, that's the side-effect it will have, and if you don't fix it Paypal will eventually turn off notifying your store of changes.
Are there any debug logs related to the ipn handler? On v1.5.1 you'll want to look in both the /cache/ folder and the /includes/modules/payment/paypal/logs folder. You might need to turn debug logging on for it to record them. When it's processing IPNs it logs every step it takes to talk back to PayPal for acknowledgement, in order to evaluate failures.

> **ibuttons:**
>
> I get an error message after I sign up a new customer. It only happens intermittently
Can't offer help if we don't know what the error message is ;)

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

22 Jan 2015, 4:57 PM
#11
ibuttons avatar

ibuttons

New Zenner

Join Date:
Nov 2008
Posts:
51
Plugin Contributions:
0

Re: SSL problems with my GoDaddy server

DrByte:

Don't be afraid to demand compensation from them.

Ok. So I called GoDaddy and was able to get a $0.39 credit for the hosting outage. Not much, but maybe it will get their attention. I also re-explained everything on a recorded call, added up the probable cost of the lost business, (at least $4K) and threatened to move all my sites and my client sites to a new hosting provider that is more Zen Cart-friendly. The person I spoke with promised that a supervisor would listen to my recorded call. I am really not sure this will happen, or if it does, that it will do any good, but at least I tried.

BTW, any suggestions for a Zen Cart-friendly hosting provider?

DrByte:

I suggest installing these files, from the v1.5.4 zip:
/includes/extra_configures/set_time_zone.php -- and set the TZ in the top half of that file to your desired timezone
/admin/includes/extra_configures/use_catalog_time_zone.php -- no edits required to this file, since all it does is tell the admin to use the storefront file ;)
Doing that shouldn't cause any errors, but if it does, post the errors from the logs it creates ( to see the logs, read: http://www.zen-cart.com/content.php?124 )

Hot dog...that worked! Thank you so much!

DrByte:

Yes, that's the side-effect it will have, and if you don't fix it Paypal will eventually turn off notifying your store of changes.
Are there any debug logs related to the ipn handler? On v1.5.1 you'll want to look in both the /cache/ folder and the /includes/modules/payment/paypal/logs folder. You might need to turn debug logging on for it to record them. When it's processing IPNs it logs every step it takes to talk back to PayPal for acknowledgement, in order to evaluate failures.
Can't offer help if we don't know what the error message is ;)

That's good news. Thanks for your helpful information.

Nothing much in /cache/. I have turned on debugging for both PayPal Payflow Pro - Gateway (Debug) and PayPal Express Checkout (Debug). So we'll see what that turns up.

Just noticed that I am getting these messages only 1 x day, at just after midnight. Does that ring a bell?

22 Jan 2015, 6:12 PM
#12
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: SSL problems with my GoDaddy server

ibuttons:

Just noticed that I am getting these messages only 1 x day, at just after midnight. Does that ring a bell?
The PayPal alert about IPN problems is probably sent once a day, around midnight, only if they've detected failures.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

26 Jan 2015, 8:26 PM
#13
ibuttons avatar

ibuttons

New Zenner

Join Date:
Nov 2008
Posts:
51
Plugin Contributions:
0

Re: SSL problems with my GoDaddy server

I just figured out how to fix the PayPal Instant Payment Notification Warning message. Here is what I had to do, in case anyone else is getting this error.

When I moved my site, the primary domain was changed. For some reason, I was using this instead of my subdomain name within the PayPal settings. So I just updated that.

The hardest thing was to figure out where to do this. Turns out, the Instant Payment Notification (IPN) settings are found under My Profile-->My Selling Tools-->Instant Payment Notifications. Click the link Update then click *Edit Settings * and change the Notification URL * to match the path where the file resides that is called: * ipn_main_handler.php