I am trying to use the sdk from babylon to test CT in android app. I tried as given here https://github.com/babylonhealth/certificate-transparency-android
but I am getting the logs System.out: xxx.xxx.xxx.xxxx.org -> Success: SCT not enabled for insecure connection
I am very sure these are secure connections and I have valid SCT for those. When I digged in to the code, I can see that `
val host = chain.request().url().host()
val certs = chain.connection()?.handshake()?.peerCertificates()?.map { it as X509Certificate } ?: emptyList()
val result = if (chain.connection()?.socket() is SSLSocket) {
verifyCertificateTransparency(host, certs)
} else {
VerificationResult.Success.InsecureConnection(host)
}`
its coming to the else part and thus giving the error. I am see that the connection is having null value. Any idea what could be wrong.