I have scoured the web for information as well as the forums. There seems to be ways around this using .NET’s intrinsic HTTP request classes, but the goal is to use the Unity API instead as work has been done to create these new Unity Web Request classes to replace the WWW class.
It has been excruciatingly frustrating running into this.
Does anyone (or perhaps someone from Unity) have a clear, working example of how to bypass expired / invalid certificates?
With UnityWebRequest/WWW you can’t do that. This is being worked on, but will only come out in future Unity releases.
For now you have to code it yourself in Java. Mind that you would be making a security hole by doing this.
Yes, we are very aware of the security hole created by bypassing it. We certainly wouldn’t use the server in quesiton for a released product, only a development server.
We will try a self signed certificate for now then and look forward for this feature to be added (with the obvious security hole warning ).