Loading...
 
Skip to main content

Zend2 missing "sslcafile" or "sslcapath" due to 'shoutbox to twitter': Unable to enable crypto on TCP connection api.twitter.com

Status
Pending
Subject
Zend2 missing "sslcafile" or "sslcapath" due to 'shoutbox to twitter': Unable to enable crypto on TCP connection api.twitter.com
Version
15.x
15.x Regression
Category
  • Conflict of two features (each works well independently)
  • Consistency
  • Regression
  • Usability
Feature
Shoutbox
Social Networking
Resolution status
Please retest
Submitted by
Xavier de Pedro
Volunteered to solve
rjsmelo
Lastmod by
rjsmelo, lindon
Rating
(0)
Description

I upgraded a site from 12.x to 15.1, and attempted to use the post to the shoutbox while also posting to twitter, and I got this error message shown in the module:

Copy to clipboard
Failed to execute "shoutbox" module Unable to enable crypto on TCP connection api.twitter.com: make sure the "sslcafile" or "sslcapath" option are properly set for the environment.


I'll google for it, because I might be missing some system package for the communication (I upgraded to this current server after tiki12 was installed years ago, and didn't use the shoutbox + twitter for a looong while).

But in any case, some clear documentation of what packages are needed for the feature to work, and display that info also in the Upgrade Wizard as well as in the doc Tiki15 page will be welcome.


Update:
Ok, it seems the upgrade from Zend1 to Zend2 might have missed the definition of some new params needed by Twitter api which is used by the shoutbox feature in Tiki.
See this for more info:


Solution

The following changes where performed ( revision 59157 ):

- Added a preference to the tab "General Security" of "Security": "Verify HTTPS certificates of remote servers" with default of disabled (meaning that zend http client will have sslverifypeer = false)
- The default for creating a http client will be sslverifypeer = false (based on the preference)
- Added to the creation of the client a option to use "&" as a separator, instead of "&" that seams to be causing problems all over.
- When thru all Zend2 code calls that internally uses a http client (I hope) and injected the http client created using tikilib that picks up the preferences from the user.

Please try to test the code, and provide feedback if possible.

Importance
5
Easy to solve?
5
Priority
25
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
5986
Created
Wednesday 15 June, 2016 08:59:06 UTC
by Xavier de Pedro
LastModif
Saturday 02 February, 2019 23:34:40 UTC


Show PHP error messages