Does any one have a sample code that shows how to install ( programmatically) a certificate returned by a Certificate Authority and insure that the http client uses the certificate later on when using https.
The client supposed to request a certificate from the server.
Server replies with two certificates
This what the spec says:
"Once the client receives a response from the server, the certificates (certificate1 and certifificate2), in
base64 format, must be retrieved and recorded in a certificate file. Lastly, the certificates must be securely installed and stored in the client's device" . Certificate1: contains the digital certificate with the server's public key. Certificate2: contains the client's digital certificate
Two things in here
Where do we install the certificates in the device and how?
How do we guarantee that the Http client is actually loading and using the proper certificate when communicating with the server