Hello everyone,
I'm new as iOS developper, and I'm facing a WebSocket error due to my certificate...
Error Name : errSSLXCertChainInvalid Error Code : -9807
I have a server on a device, on which I want to start a secure WebSocket communication (wss://10.0.1.1:8080/). The server has my certificate .pem and works very well with my android App. When I choose Debug in Xcode buildConfiguration, there is no problem for the WebSocket communication (I think Debug doesn't check certificate during the Handshake process). But when I choose Release, I have the error because I didn't add the certificate on the iOS App. I don't really know how to add it properly...
But, I also tried to disable HTTPS checks (ATS) :
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
but that din't work either.
If anyone can help me?
Thank you