Title: WordPress HTTPS issue (Flexible SSL &#8211; Cloudflare)
Last modified: March 10, 2019

---

# WordPress HTTPS issue (Flexible SSL – Cloudflare)

 *  [spello](https://wordpress.org/support/users/spello/)
 * (@spello)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/wordpress-https-issue-flexible-ssl-cloudflare/)
 * I use Flexible SSL via Cloudflare.
 * I edited my wp-config.php with:
 *     ```
       if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false) {
           $_SERVER['HTTPS'] = 'on';
       }
       ```
   
 * and
    `define('FORCE_SSL_ADMIN', true);`
 * Everything was fine till I decided to update my WordPress Multisite. I did it
   with succeed, but after starting `Upgrade Network` I received an error:
 * `Warning! Problem updating https://example.com. Your server may not be able to
   connect to sites running on it. Error message: stream_socket_client(): SSL operation
   failed with code 1. OpenSSL Error messages: error:14077410:SSL routines:func(
   119):reason(1040) stream_socket_client(): Failed to enable crypto stream_socket_client():
   unable to connect to ssl://example.com:443 (Unknown error)`
 * I had to disable SSL and run upgrade from HTTP.
 * How to fix this in future?
    -  This topic was modified 7 years, 1 month ago by [spello](https://wordpress.org/support/users/spello/).
    -  This topic was modified 7 years, 1 month ago by [spello](https://wordpress.org/support/users/spello/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [JNashHawkins](https://wordpress.org/support/users/jnashhawkins/)
 * (@jnashhawkins)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/wordpress-https-issue-flexible-ssl-cloudflare/#post-11297041)
 * I’m sure there are better ways to deal with this but I just consider the CloudFlare
   proxy itself as a server and I didn’t worry with the https back on the actual
   WordPress website at all.
 * This article explains this a little better but leans toward using the CloudFlare
   plugin… [https://www.cloudflare.com/integrations/wordpress/free-ssl-certificate-wordpress/](https://www.cloudflare.com/integrations/wordpress/free-ssl-certificate-wordpress/).
 *  [JNashHawkins](https://wordpress.org/support/users/jnashhawkins/)
 * (@jnashhawkins)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/wordpress-https-issue-flexible-ssl-cloudflare/#post-11297047)
 * I’m sure there are better ways to deal with this but I just consider the CloudFlare
   proxy itself as a server and I didn’t worry with the https back on the actual
   WordPress website at all.
 * This article explains this a little better but leans toward using the CloudFlare
   plugin… [https://www.cloudflare.com/integrations/wordpress/free-ssl-certificate-wordpress/](https://www.cloudflare.com/integrations/wordpress/free-ssl-certificate-wordpress/).

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘WordPress HTTPS issue (Flexible SSL – Cloudflare)’ is closed to new replies.

## Tags

 * [flexible-ssl](https://wordpress.org/support/topic-tag/flexible-ssl/)
 * [HTTPS](https://wordpress.org/support/topic-tag/https/)
 * [multisite](https://wordpress.org/support/topic-tag/multisite/)
 * [SSL](https://wordpress.org/support/topic-tag/ssl/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [JNashHawkins](https://wordpress.org/support/users/jnashhawkins/)
 * Last activity: [7 years, 1 month ago](https://wordpress.org/support/topic/wordpress-https-issue-flexible-ssl-cloudflare/#post-11297047)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
