I'm building an app that should download file from a given url and store it locally, like a cache.
Now, I would like to be able to prove that the content was indeed downloaded from this url, and not replaced or tampered with. Most importantly, I should be able to do that if the original url is not available anymore or the server is down
Only solution I could think of is to somehow record all SSL communication with the server, and use SSL signatures to verify against the server's certificate
Is there a way to do that?