I am using SSL cert pinning in retrofit with using sha256 key. But, it gets expire after certain times. At that time I have to update applications with new sha256 key. This is not reliable practice for customers to update app every time. How can I prevent this?
val certificatePinner: CertificatePinner = CertificatePinner.Builder()
.add(
certificateBase,
certificateSHA
).build()
builder.certificatePinner(certificatePinner)
second query, If I dont want to use this certPinning in retrofit, I would choose to implement public pinning using .pem certificates file. Ref link: https://owasp.org/www-community/controls/Certificate_and_Public_Key_Pinning Is public pinning require to update app everytime? Is there any pinning method which doesn’t require to update applications, just one time pinning. Thanks in Advance.