Hello,
I’ve tried searching in the Unity/Xbox forums but nothing as yet seems to solve my problem.
What I’m trying to do is seemingly very simple and I guess there’s some obvious things I’m missing.
I’m developing a game in Unity for Xbox One. In it, I’m making a call out to a 3rd party website to obtain leaderboard information and return it - to be displayed on the screen. In the Unity Editor it all works fine - the data is returned with no errors. Once I deploy this to my Xbox One dev kit, I get the following error:
“Destination host has an erroneous SSL certificate”
My calling code consists of:
void Start()
{
StartCoroutine(SendWebRequest());
}
I’m checking the value of utils.WebRequestResult which contains the string as above.
Running this on the PC in the Unity Editor works fine - www.downloadHandler.text contains all the data I need and there’s no errors. After deploying this to the Xbox One devkit www.error contains the error “Destination host has an erroneous SSL certificate”.
The website does indeed have a correct security certificate.
What else am I missing for the code above to get this to work on the Xbox?
Thanks @Kurt-Dekker (apologies for the very late reply!). I’ve checked it with an online SSL checker and it works fine.
Possibly some progress, but still having issues - when I’ve enabled Fiddler on my Xbox One dev kit (using these instructions: How to use Fiddler with Xbox One when developing for UWP - UWP applications | Microsoft Learn) and run the game on it, everything works perfectly - the data comes back with no errors. I can see in Fiddler on my PC that it tunnels correctly to the URL and returns data.
When I switch off Fiddler from Xbox dev kit and run the same build I get the “erroneous SSL certificate” error - as if the Xbox can’t communicate correctly over the internet. Is there something else I’m missing in terms of setup? Either on the Xbox itself or in Partner Center?
What happens if you put TWO fiddlers / charleses in a row… what does the one closer to the gateway show you that is different from when you have the FIRST fiddler going or not?
What this sort of thing could be is far outside my wheelhouse. I imagine something with certs and chains of trust perhaps changing, or else who knows what. Sorry, not a network guy.
Thanks @Kurt-Dekker - it’s definitely outside my wheelhouse too. I’ve followed the various guides that Xbox guys have sent over in terms of config setup, network setup, partner center setup - nothing seems to work.
Not sure if there’s a firewall issue but I’ve opened up the ports they said to.
Am really at a loss here. There must be something bleedingly obvious that I’m missing, but I really don’t know what it might be.
@Sunomo did you figure that out? I’m facing the same issue. However, I’ve not gone through any setup for our self-hosted server at the Microsoft Partner Center, so this might be the leading issue… can you direct me where to find resources on it? Thanks in advance
Unfortunately I couldn’t get it to work
I gave up trying to use the web request logic. Instead I managed to figure out the native Xbox leaderboard functionality - Which is a challenge in itself.
Are you 100% sure that your SSL certificate is setup correctly? For some clients it’s not enough to just provide your own certificate but you also need the chain certificates. This site can check your certificate and can even create the proper chain certificates for you. Do you have a paid SSL certificate or do you use something like Let’s Encrypt?