WordPress could not establish a secure connection to WordPress.org

Hi when I upgrade worpdress I see this error message in my Debian 7.0 log file.

/var/log/apache2/error.log

[Wed Oct 15 14:34:18 2014] [error] [client 78.134.66.10] PHP Warning:  An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the <a href="https://wordpress.org/support/">support forums</a>. (WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.) in /........./wp-includes/update.php on line 119, referer: http://creativesocietylibrary.org/wp-admin/network/update.php?action=update-selected&plugins=domain-mapping%2Fdomain-mapping.php%2Csnapshot%2Fsnapshot.php%2Cultimate-branding%2Fultimate-branding.php%2Cwpmudev-updates%2Fupdate-notifications.php&_wpnonce=3a48a00109
[Wed Oct 15 14:34:25 2014] [error] [client 78.134.66.10] PHP Warning:  An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the <a href="https://wordpress.org/support/">support forums</a>. (WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.) in /........../wp-includes/update.php on line 295, referer: http://creativesocietylibrary.org/wp-admin/network/update.php?action=update-selected&plugins=domain-mapping%2Fdomain-mapping.php%2Csnapshot%2Fsnapshot.php%2Cultimate-branding%2Fultimate-branding.php%2Cwpmudev-updates%2Fupdate-notifications.php&_wpnonce=3a48a00109
[Wed Oct 15 14:34:35 2014] [error] [client 78.134.66.10] PHP Warning:  An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the <a href="https://wordpress.org/support/">support forums</a>. (WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.) in /......./wp-includes/update.php on line 457, referer: http://creativesocietylibrary.org/wp-admin/network/update.php?action=update-selected&plugins=domain-mapping%2Fdomain-mapping.php%2Csnapshot%2Fsnapshot.php%2Cultimate-branding%2Fultimate-branding.php%2Cwpmudev-updates%2Fupdate-notifications.php&_wpnonce=3a48a00109

I check my firewall configuration and it looks ok, I think...

$ sudo ufw status verbose
Status: active
Logging: on (low)
Default: deny (incoming), allow (outgoing)
New profiles: skip

To                         Action      From
--                         ------      ----
22                         ALLOW IN    Anywhere
80/tcp                     ALLOW IN    Anywhere
21/tcp                     ALLOW IN    Anywhere
22                         ALLOW IN    Anywhere (v6)
80/tcp                     ALLOW IN    Anywhere (v6)
21/tcp                     ALLOW IN    Anywhere (v6)

Any tips to fix the problem?
Does wordpress needs some extra port open?

Thanks so much for your help.

Best regards