к https игнорируя сертификат?
Пробовал разные варинаты из гугла и постоянно ошибки:
General SSLEngine problem
или
Hostname verification failed! Expected session to be for localhost
А пробовал loose.withDisableSNI? У них в доке было
private val trustfulSslContext: SSLContext = { object NoCheckX509TrustManager extends X509TrustManager { override def checkClientTrusted(chain: Array[X509Certificate], authType: String): Unit = () override def checkServerTrusted(chain: Array[X509Certificate], authType: String): Unit = () override def getAcceptedIssuers: Array[X509Certificate] = Array[X509Certificate]() } val context = SSLContext.getInstance("TLS") context.init(Array[KeyManager](), Array(NoCheckX509TrustManager), null) context } val noCertificateCheckContext: HttpsConnectionContext = ConnectionContext.https(trustfulSslContext)
Обсуждают сегодня