as you can imagine this is not easy way to do that. I reading a lot of articles ssl certificate pinning with using httpclient/okhttpclient but I've no idea how can I implement these codes to my project.
1. I had .crt file from targeting web server which is I'm trying to ssl communication with it. (it was obtained using firefox)
2. I converted to a bks formatted keystore file
3. I put that file to res/raw folder.
I want to learn how can I use CertificatePinner in okHttp or SSLSocketFactory in default httpClient.
is there any way to do programmatically on android device? On the other hand, install certificate to device is not the right way to achieve main purpose of SSL certificate pinning.