WordPress 4.6 had problems with cURL error 23

Solution:

Simply install necessary extensions and restart fpm process:

sudo apt-get install php-mysqlnd php-mysqli
sudo /etc/init.d/php7.0-fpm restart