Closed nehalshah50 closed 6 years ago
Sorry for the delay of the answer. Yes you need to specify the SSLSocketFactory for every new request. We haven't found any elegant way to do it dynamically and we have chosen to not manage the requests in TrustKit directly.
Is it necessary to create a new PinningTrustManager/SSLSocketFactory for every request(TrustKit.getInstance().getSSLSocketFactory(url)? Can't we build the static map by host name in TrustKit and reuse?