CertificateException: Domain specific configurations require that hostname aware checkServerTrusted(X509Certificate[], String, String) is used
See original GitHub issueHi,
I’m setting up a minimal Realm Kotlin (Android only) sample but as soon as I call:
app.login(Credentials.anonymous())
I get the following ConnectionException:
[Custom][Unknown(1002)] java.security.cert.CertificateException: Domain specific configurations require that hostname aware checkServerTrusted(X509Certificate[], String, String) is used.
As I just followed the official documentation: Do you have any ideas what’s wrong?
Issue Analytics
- State:
- Created a year ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Network security configuration not working with third party API
If your network config contains any <domain-config blocks, Framework throws CertificateException if you call checkServerTrusted(X509Certificate ...
Read more >Android network security configuration not working
CertificateException : Domain specific configurations require that hostname aware checkServerTrusted(X509Certificate[], String, String) is ...
Read more >core/java/android/security/net/config/RootTrustManager.java
throw new CertificateException(. "Domain specific configurations require that hostname aware". + " checkServerTrusted(X509Certificate[], String, String) is ...
Read more >"server TLS certificate untrusted" error connecting to sync ...
CertificateException : Domain specific configurations require that hostname aware checkServerTrusted(X509Certificate[], String, String) is ...
Read more >X509ExtendedTrustManager - Android Developers
chain, X509Certificate : the peer certificate chain. authType, String : the key exchange algorithm used. engine, SSLEngine : the engine used for this ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for that hint! Currently we need this config, will look for a workaround.
Looks like the problem is not on realm’s end, I think this can be closed.
No, you shouldn’t need any specific network configuration to run Sync.
If you still need to have a domain-specific configuration please be aware of the existence of a bug in the Ktor library, which we use internally as our network transport for enabling Sync: https://youtrack.jetbrains.com/issue/KTOR-2243/Android-CIO-client-fail-with-javasecuritycertCertificateException#focus=Comments-27-5915979.0-0