Looks like no third-party libraries need, this can be achieved by a single config https://developer.android.com/training/articles/security-config#CertificatePinning
Upd. We need to be able to update certs: https://github.com/wultra/ssl-pinning-android allow dynamic SSL pinning