我目前正在使用okttp3做一个简单的GET请求。我使用我的烧瓶折叠作为API端点。而另一些时候,我得到了以下错误 at okhttp3.internal.http1.Http1ExchangeCodec$FixedLengthSource.read(Http1ExchangeCodec.kt:389)
at okhttp
在com.squareup.retrofit2:retrofit:2.0.1上使用com.squareup.okhttp3:okhttp:3.2.0和AVD with Android 6.0。我正在尝试使用由根CA签名的自签名证书来实现公钥固定。根CA位于系统CA信任存储中。使用okhttp 提供的示例进行一些小更改:
OkHttpClient client = new OkHttpClient.Builder().certificatePinner(唯一正确的做法是验