So I'm testing some new environments my backend te...
# squarelibraries
c
So I'm testing some new environments my backend team put up. They're only available through our internal VPN, and their ssl cert + chains don't pass validation. The iOS team was able to work around this to at least be able to test the environment... but no amount of copy pasta from stackoverflow to "disable ssl checks in okhttp" have worked. Initially my error is
<http://javax.net|javax.net>.ssl.SSLPeerUnverifiedException
but then if I copied this solution https://www.baeldung.com/okhttp-client-trust-all-certificates then I do get a new error:
java.net.SocketException: Connection Reset
Is there a canonical example on how to disable all ssl cert validation so I can test under this scenario?
y
Okhttp-tls has an addInsecureHost
e
or add your internal certs to network_security_config.xml
👍 1
☝️ 1
c
I've added our internal certs but was still getting ssl errors similar to the above