• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.5 Zend_Http_Client_Adapter_Exception: Unable to Connect to ssl://accounts.google.com:443. Error #0

markku

Well-known member
#1
Nothing has changed on the server or software side, no add-on updates, nothing, but our Google authentication for XenForo has been broken for a couple of days now.

When a person tries to sign in using Google, the popup opens, and when they click "Allow" on the popup, it returns to the forum and says Server error occurred.

Server error:

Code:
Zend_Http_Client_Adapter_Exception: Unable to Connect to ssl://accounts.google.com:443. Error #0
Stack Trace
Code:
#0 /home/domains/public/library/Zend/Http/Client.php(973): Zend_Http_Client_Adapter_Socket->connect('ssl://accounts....', 443, true)
#1 /home/domains/public/library/XenForo/ControllerPublic/Register.php(1044): Zend_Http_Client->request('POST')
#2 /home/domains/public/library/XenForo/FrontController.php(351): XenForo_ControllerPublic_Register->actionGoogle()
#3 /home/domains/public/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#4 /home/domains/public/index.php(13): XenForo_FrontController->run() #5 {main}
Request State
Code:
array(3) {
  ["url"] => string(117) "https://www.ourdomain.com/register/google?code=4/agOS5giTQCMy_MX_hY0fN4pHqQ8wHZcjhs4ATPD0YPc&csrf=cX_CMMB7HdYYwI28"
  ["_GET"] => array(3) {
    ["/register/google"] => string(0) ""
    ["code"] => string(45) "4/agOS5giTQCMy_MX_hY0fN4pHqQ8wHZcjhs4ATPD0YPc"
    ["csrf"] => string(16) "cX_CMMB7HdYYwI28"
  }
  ["_POST"] => array(0) {
  }
}
On the server, when I try a command e.g.
Code:
openssl s_client -connect accounts.google.com:443
It works fine and connects fine.

So what gives? What's the problem here? Why the XF<->Google connection errors out but server<->Google accounts SSL works fine? And why did the XF<->Google connection broke suddenly a couple of days ago? We've had it successfully set up for ages before this started happening.