I’m using UnityWebRequest to perform POST operations across HTTPS. I’ve tried and tested with HTTP, and it all works. When I switch to HTTPS, the UnityWebRequest returns an error with the text “Unable to complete SSL connection”.
There doesn’t seem to be any more helpful information than this in the error, and I can’t find anything on a Google. Can anyone help me out?
I had my server set to TLSv1.2 and TLSv1.1 and was receiving the same error message that you are getting. I weakened it to include TLSv1 as well (in the server configuration) and now I’m getting proper connects and responses using UnityWebRequest to create POST queries to my rest API
HTTPS works fine with UnityWebRequest, if you can change the ssl protocol on your server to TLSv1. SSL variants will probably work as well but are even less secure. I’m using Unity 5.2 where the UnityWebRequest class was first introduced.
Many thanks for your answer Nate! I was beginning to become seriously concerned about our project’s future!
If possible, can you provide any detail on TSL configuration, certificate configuration and/or the configuration of UnityWebRequest? As I said, I have our current application working across HTTP, but I haven’t configured HTTPS before, so any help would be gratefully received!
OK, for starters are you using apache or nginx as your server? I can help with those. If you’re using IIS it’s probably still doable, but I don’t have as much experience with that.
The certificate is the same regardless of protocol used