Why WordPress won’t update via VPN?

Have the same problem. I have set proxy in wp-config.php, it didn’t work, and displays ‘ could not establish a secure connection to WordPress.org’ with debug mode. I set my localproxy listen to public IP addresses, still the same error.
But when I use curl www.wordpress.org or wget www.wordpress.org, it just works fine.

tech