Jump to content


Photo

PHP SSL client error, openssl issue...


  • Please log in to reply
6 replies to this topic

#1 Yoni

Yoni

    Support Team Member

  • Support Team
  • PipPip
  • 97 posts
  • Gender:Male
  • Main OS: Other

Posted 21 February 2012 - 10:54 AM

Hi there,

I'm unable to sync with Google's calendar from my webmail application... Doing some investigation this is what I get from cURL debug:

error:14092073:SSL routines:SSL3_GET_SERVER_HELLO:bad packet length

I believe PHP is throwing this error because OpenSSL is compiled with no-tlsext? I'm on Coral 8.0.0 and this is really an issue affecting my production system. Is it there a work around to fix this? Can I use apache binaries to allow my application to work?

Any tip is appreciated. This is the first and only issue that I have really faced with UniServer Coral running in production :blink:

I think I have hit a month or so of uptime and even when there isn't much traffic yet Uniserver seems rock solid.

Please, give me some hints on how to resolve this issue...

Yoni


#2 BobS

BobS

    Project Helper

  • Super Moderator
  • PipPipPip
  • 334 posts
  • Location:Santiago Chile
  • Interests:Retiring, computer systems, system design, model railroads....
  • Wiki ID: BobS
  • Main OS: Windows 7

Posted 21 February 2012 - 01:32 PM

Wow. this is waaay beyond my knowledge base. I have NO experience with programming for SSL transactions. I don't know the extent of Ric's knowledge in this area, either.

Since you're working with Google's app, you might be able to tap them for some help (maybe) :blink: Hey, it's worth a try.

Other possibilities for help are php.net or openssl.

I suggest that you map out the transaction as well as you can, perhaps using a packet logger, so that you can be sure just what's being passed.

Sorry I can't be more help.
Regards,
BobS

#3 BobS

BobS

    Project Helper

  • Super Moderator
  • PipPipPip
  • 334 posts
  • Location:Santiago Chile
  • Interests:Retiring, computer systems, system design, model railroads....
  • Wiki ID: BobS
  • Main OS: Windows 7

Posted 21 February 2012 - 01:57 PM

HAH!
I got a "maybe" clue from this post: http://stackoverflow...r-email-library
This fix was related to the CHARSET specified. Instead of UTF-8, try iso-8859-1. Check out the link for additional info.

Regards,
BobS

#4 Yoni

Yoni

    Support Team Member

  • Support Team
  • PipPip
  • 97 posts
  • Gender:Male
  • Main OS: Other

Posted 21 February 2012 - 06:48 PM

Hi Bob,
Thanks a lot for your help. Your good intention is honestly priceless. I was able to solve the issue by upgrading my openssl and php versions respectively. I used the 8.2.0 php and ssl after some testing on my 8.0.0 installation.

It is all good now. I haven't seen any errors in my logs yet so the "upgrade" can be considered a success.

I'm able to finally sync my personal calendar and google's...

Thank you so much. I will look at other things within the package and upgrade them slowly after testing. I can't afford to break it at this point. If ain't broken ain't fix it. That's how I do it :blink:

Yoni


#5 Yoni

Yoni

    Support Team Member

  • Support Team
  • PipPip
  • 97 posts
  • Gender:Male
  • Main OS: Other

Posted 22 February 2012 - 01:10 AM

You can test the webmail here:

http://webmail.unlockforus.com (Google Calendar now syncs beautifully)

Demo account
----------------

Bob, check the site out. Nothing special to brag about it except the fact that it is fully "Uniserved" :blink:
http://unlockforus.com

Server Uptime and Server Load http://unlockforus.com/server

Wondering why newer APC version was not included with the latest 8.2.0 release?

Newer PHP + APC rocks! I'm testing eAccelerator in another server and it also seems to do wonders. Need to put it under real stress to see how it behaves.

Yoni


#6 BobS

BobS

    Project Helper

  • Super Moderator
  • PipPipPip
  • 334 posts
  • Location:Santiago Chile
  • Interests:Retiring, computer systems, system design, model railroads....
  • Wiki ID: BobS
  • Main OS: Windows 7

Posted 23 February 2012 - 11:26 AM

HOT dog!

A ray of hope! Okay, we'll need to look into getting these updated and aligned.

Regards,
BobS

#7 Yoni

Yoni

    Support Team Member

  • Support Team
  • PipPip
  • 97 posts
  • Gender:Male
  • Main OS: Other

Posted 23 February 2012 - 12:28 PM

There are users reporting issues with the latest apache bundle. I think it would be wise to make an extraordinary package (mix of 8.0.0 apache with 8.2.0 php, openssl, mysql, etc.) I think this would give the stability users are looking for in UniServer. Just offer it as an alternative package or something like that. It does work well and I have had it up there for over a month without a crash yet... Would that make sense?

Yoni





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users