Handle site certificate expiry with OkHttp Certificate pinning on Android
<p>I have an app that has a site certificate hash pinned with OkHttp3 similar to the method mentioned <a href="https://github.com/square/okhttp/wiki/HTTPS#certificate-pinning" rel="nofollow noreferrer">here</a></p>

<p>The site certificate is about to expire soon though and I realized that I need to be able to support a new site certificate as soon as I switch update that on the site, as well as let the current one still work until then. Is there a way to pin 2 certificates for the same site so that both are supported seamlessly (i.e when the current one expires and one is no longer valid as well as the new one as soon it is updated)?</p>

<p>TIA</p>