Closed rkshnair closed 4 years ago
I think only certificate pinning is supported. I am not sure.. @phdonnelly @alexrainman Can help.
First, you don't pass certificate with all the http requests.
Certificate validation happens during SSL handshake and, if everything goes as expected, private keys are interchanged between client and server so the data in the wire can be encrypted.
Including a certificate in the app is an outdated and not flexible practice. If the certificate expires, you will need to update your app.
Use the certificate public keys instead, which is the support provided in the plugin.
@alexrainman I'm trying to understand, can you please explain why won't the public keys also be invalid when the certificate expires and a new one is generated?
I have a certificate with Public Key is installed in my Android App. I need to read the certificate and pass that with all the http requests.
I was able to read my certificate and key information using the below code. But how I can pass that information through ModernHttpClient for getting an HTTP request.
Please help.