Title: iTunes won&#039;t use media with HTTPS URLs
Last modified: September 1, 2016

---

# iTunes won't use media with HTTPS URLs

 *  Resolved [KCPT](https://wordpress.org/support/users/kcpt/)
 * (@kcpt)
 * [10 years ago](https://wordpress.org/support/topic/itunes-wont-use-media-with-https-urls/)
 * May want to force the URL to be HTTP somewhere in the plugin, or at least give
   that option. itunes doesn’t like HTTPS and won’t load any media over HTTPS. I’m
   currently getting around this by adding a save_post hook in my theme to update
   the postmeta with HTTP if it detects HTTPS on images and mp3.
 * [https://wordpress.org/plugins/powerpress/](https://wordpress.org/plugins/powerpress/)

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

 *  Plugin Contributor [Angelo Mandato](https://wordpress.org/support/users/amandato/)
 * (@amandato)
 * [10 years ago](https://wordpress.org/support/topic/itunes-wont-use-media-with-https-urls/#post-7671521)
 * iTunes does support HTTPS, but only from a specific list of SSL certificates.
   See this url for details: [https://create.blubrry.com/manual/your-web-site/secure-ssl-podcast-website/](https://create.blubrry.com/manual/your-web-site/secure-ssl-podcast-website/).
   As long as your SSL’s “certificate authority” or “root” certificate is in the
   list linked above you will not have issues with iTunes.
 * My guess is the SSL certificate you are using is not accepted. The big ones today
   that are not accepted are the free SSL certificates from LetsEncrypt and StartSSL.
 * May I ask what SSL certificate you recently purchased so we can add it to the“
   not supported” list?
 *  Thread Starter [KCPT](https://wordpress.org/support/users/kcpt/)
 * (@kcpt)
 * [10 years ago](https://wordpress.org/support/topic/itunes-wont-use-media-with-https-urls/#post-7671535)
 * Ahhh! That would be why. We’re using Lets Encrypt.
 *  [Fastmover](https://wordpress.org/support/users/fastmover/)
 * (@fastmover)
 * [10 years ago](https://wordpress.org/support/topic/itunes-wont-use-media-with-https-urls/#post-7671540)
 * You should add a checkbox in the config page to rewrite HTTPS to HTTP. I’ve already
   written the code for this:
 * [https://gist.github.com/fastmover/dfbd391b824c94f6181c841ac5bdd7e9](https://gist.github.com/fastmover/dfbd391b824c94f6181c841ac5bdd7e9)
 *  Thread Starter [KCPT](https://wordpress.org/support/users/kcpt/)
 * (@kcpt)
 * [10 years ago](https://wordpress.org/support/topic/itunes-wont-use-media-with-https-urls/#post-7671541)
 * Good fix.
 *  Plugin Contributor [Angelo Mandato](https://wordpress.org/support/users/amandato/)
 * (@amandato)
 * [10 years ago](https://wordpress.org/support/topic/itunes-wont-use-media-with-https-urls/#post-7671549)
 * Fastmover, would you ilke this patch added permanently to PowerPress?
 * One thing I would point out is that this may have unintended consequences. For
   example, your non secure links on a secure page may now make your pages invalid
   in browsers like Firefox that are very strict.
 *  [Fastmover](https://wordpress.org/support/users/fastmover/)
 * (@fastmover)
 * [10 years ago](https://wordpress.org/support/topic/itunes-wont-use-media-with-https-urls/#post-7671560)
 * If you don’t mind go ahead and add that patch, that’d be great.
 * That is a good point, I would suggest the plugin also checking if the request
   was http or https and outputting that accordingly.
 *  Plugin Contributor [Angelo Mandato](https://wordpress.org/support/users/amandato/)
 * (@amandato)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/itunes-wont-use-media-with-https-urls/#post-7789116)
 * I am working on adding this patch to PowerPress. It seems though that this https
   to http is only necessary for the feed, not the rest of the site. Is everyone
   involved ok if I place this logic in the feed enclosures only? In addition I 
   can also convert the URL to the image in the same way.
 * Also should point out that this only works if your site supports both HTTP and
   HTTPS. It is common to see folks who move from HTTP to HTTPS to simply redirect
   all the HTTP URLs to HTTPS, in such a case this option is not going to work.
 *  Plugin Contributor [Angelo Mandato](https://wordpress.org/support/users/amandato/)
 * (@amandato)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/itunes-wont-use-media-with-https-urls/#post-8161030)
 * I have a pre-release version of PowerPress with a force HTTP option. At the moment
   the option is enabled by adding the following line to your wp-config.php.
 * `define('POWERPRESS_FEEDS_FORCE_HTTP', true);`
 * The define will convert enclosure media links as well as itunes:image links from
   https to http. I also made an inverse option, ‘POWERPRESS_FEEDS_FORCE_HTTPS’.
   Though not intended for this group, ‘POWERPRESS_FEEDS_FORCE_HTTPS’ provides the
   opposite which may be useful if you convert your site from HTTP to HTTPS and 
   do not wish to update all the media URLs in PowerPress.
 * You may download this pre-release of PowerPress 7.0.3 here: [https://downloads.wordpress.org/plugin/powerpress.zip](https://downloads.wordpress.org/plugin/powerpress.zip)
 * Please let me know if it works for you.
 *  [garryaylott](https://wordpress.org/support/users/garryaylott/)
 * (@garryaylott)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/itunes-wont-use-media-with-https-urls/#post-8826448)
 * Just jumping in, it seems iTunes now supports LetsEncrypt certificates. I switched
   over to HTTPS but I had issues with iTunes not updating and Android users had
   error messages (SSLEncryption – Connection closed by peer) so I’m not sure if
   there’s an issue with iTunes still and LE or my Powerpress settings?
 * If I add the above (`define('POWERPRESS_FEEDS_FORCE_HTTP', true);`) to my wp-
   config.php file is there then something to enable in the settings or does it 
   just take care of that stuff and force the feed to use HTTP regardless?
 *  Plugin Contributor [Angelo Mandato](https://wordpress.org/support/users/amandato/)
 * (@amandato)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/itunes-wont-use-media-with-https-urls/#post-8826542)
 * Hello [@garryaylott](https://wordpress.org/support/users/garryaylott/),
 * Yes just this January iTunes announced it now supports LetsEncrypt SSL certs.
   We have tested a number of podcasts with success with LetsEncrypt SSL certs it
   should not pose an issue.
 * BTW you want POWERPRESS_FEEDS_FORCE_HTTPS not POWERPRESS_FEEDS_FORCE_HTTP. Note
   the S at the end of the URL. The POWERPRESS_FEEDS_FORCE_HTTP version as you copied
   is really not useful except if you are using a LetsEncrypt SSL cert before January
   of this year and needed to use http:// for iTunes.
 * A connection closed by peer may indicate an issue with your web server itself.
 * Can you reply with the URL to your podcast feed so we can test?
 *  [garryaylott](https://wordpress.org/support/users/garryaylott/)
 * (@garryaylott)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/itunes-wont-use-media-with-https-urls/#post-8826606)
 * To be clear, I added “POWERPRESS_FEEDS_FORCE_HTTP” so that iTunes continued to
   update and it also resolved the Android errors. When I switched it over to HTTPS
   everything worked fine with the site, it was iTunes and Android users complaining
   that iTunes wasn’t updating or errors.
 * I’ve since put my site back to HTTP and disabled the LE cert so my feed is back
   to HTTP. I asked the question as I’d like to get it going with HTTPS if possible
   but if it means people not being able to play episodes or iTunes not updating
   I’d rather leave it.
 * This leaves me with a problem now. Do I switch everything back to HTTPS and use
   your “…feeds_force_http” in wp-congig hoping that works or just leave the whole
   site as HTTP.
 *  Plugin Contributor [Angelo Mandato](https://wordpress.org/support/users/amandato/)
 * (@amandato)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/itunes-wont-use-media-with-https-urls/#post-8826820)
 * You could do both. I cannot guarantee this will work with your hosting but it
   should for most hosting companies. Setup the wp-config.php so both an HTTP and
   HTTPS versions of your site load. You do not want to do this permanently but 
   for a few weeks just to test on various Android apps and iTunes it will do the
   job.
 * HTTP and HTTPS: [https://blog.rabin.io/sysadmin/make-wordpress-site-work-both-http-https](https://blog.rabin.io/sysadmin/make-wordpress-site-work-both-http-https)
 * Note that caching plugins may not like both http and https at the same time so
   be cautions of that.
 *  [garryaylott](https://wordpress.org/support/users/garryaylott/)
 * (@garryaylott)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/itunes-wont-use-media-with-https-urls/#post-8827491)
 * Thanks for the advice, will give it a go.

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

The topic ‘iTunes won't use media with HTTPS URLs’ is closed to new replies.

 * ![](https://ps.w.org/powerpress/assets/icon.svg?rev=2849869)
 * [PowerPress Podcasting plugin by Blubrry](https://wordpress.org/plugins/powerpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/powerpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/powerpress/)
 * [Active Topics](https://wordpress.org/support/plugin/powerpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/powerpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/powerpress/reviews/)

## Tags

 * [itunes](https://wordpress.org/support/topic-tag/itunes/)

 * 13 replies
 * 4 participants
 * Last reply from: [garryaylott](https://wordpress.org/support/users/garryaylott/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/itunes-wont-use-media-with-https-urls/#post-8827491)
 * Status: resolved