Sign in Go Pro

MockWebServer

Certificate Pinning and HTTPS

 
Autoplay

Previous

About

Say you want to restrict your app to talk to one particular domain, via https only. How do you configure that with OkHttp, and how to test that with MockWebServer ?

In this episode you will learn:
* How to set up Certificate Pinning in OkHttp
* How to restrict OkHttp to https only
* How to have MockWebServer use https
* How to have the app and test use a matching socket factory

Link

OkHttp HTTPS

Source

https://github.com/chiuki/mockwebserver-demo/tree/https-only

Instructor

Links

Comments

There are no comments on this lesson, start the conversation below ...

>
You need to go PRO to post comments.

Lessons in MockWebServer