WWW not working with https in iOS builds

After the Unity 5 update, our WWW downloads stopped working in iOS builds when we use an https protocol.

We can download in iOS builds using an http protocol. We can download in Editor, Mac and Android platforms using both protocols.

The www’s error is

The operation couldn’t be completed. (NSURLErrorDomain error -1012.)

Code -1012 corresponds to NSURLErrorUserCancelledAuthentication (1).

Finally, we tried downloading using the C# WebClient class and that worked even with an https protocol. Unfortunately, this isn’t a great solution because we are using asset bundles so it would be much better to download them WWW.LoadFromCacheOrDownload.

Has anyone encountered this problem (or found a solution) since the Unity 5 update?

Use http instead of https in the url and it should work fine unless the website requires specific certificates.