Domain specific configurations require that hostname aware checkServerTrusted

Certainly we debugged it in plenty of detail, we just will not introduce any workarounds for some crappy FB implementations.

If you look at the stack trace, you will see that the weborb client does getOutputStream on an HTTPURLConnnection:

'javax.net.ssl.SSLHandshakeException: Domain specific configurations require that hostname aware checkServerTrusted(X509Certificate[], String, String) is used
at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:355)
at com.android.okhttp.internal.io.RealConnection.connectTls(RealConnection.java:193)
at com.android.okhttp.internal.io.RealConnection.connectSocket(RealConnection.java:150)
at com.android.okhttp.internal.io.RealConnection.connect(RealConnection.java:112)
at com.android.okhttp.internal.http.StreamAllocation.findConnection(StreamAllocation.java:184)
at com.android.okhttp.internal.http.StreamAllocation.findHealthyConnection(StreamAllocation.java:126)
at com.android.okhttp.internal.http.StreamAllocation.newStream(StreamAllocation.java:95)
at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:319)
at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:245)
at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:473)
at com.android.okhttp.internal.huc.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:127)
at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:262)
at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getOutputStream(DelegatingHttpsURLConnection.java:218)
at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getOutputStream(Unknown Source:0)
at weborb.client.ioEngine.HttpIOEngine.send(HttpIOEngine.java:195)```

It is a very easy concept. Why other sdk can work with https normally in a project with FB Ads SDK?

H have this problem too
also there is no problem on Android 4.3
Tested

Hi Pouria,

we’ll take a look into this. Thanks for patience!

Regards,
Stanislaw

Hi @Pouria_Sharifzad,

Could you please do the following to help us out with a resolution for this problem:

  1. Create a very basic, simple android project with all required dependencies which reproduces the error
  2. Upload the project to ether Google Drive or Dropbox
  3. Create a new support topic on this forum with the following information:
  • Android version the problem happens with
  • Link to the project from (2)

Many thanks!!

Regards,
Mark