I have file server (that hosts update files) and I want to use a proxy server to cache some of these updates. The problem is that I want to do this via HTTPS, not plain HTTP.
Basically my use case is the following:
I have 3 machines: a client machine, a proxy server and an updates server. The client asks the proxy if there is an update available. The proxy will then download any update, cache it and deliver it to the client. This means that the proxy will intercept the server data, decrypt it, store it and then pass it on. The next time the client asks the proxy for an update, it will give it the cached one and will not "bother" the actual update server. I know the example seems a bit redundant, but imagine that there is more than one client.
My update server is using HTTPS. For this I've created a self-signed certificate using OpenSSL. I've imported this certificate on the proxy server and the client machine, but I'm unable to read/decrypt the HTTPS traffic (i.e. the read the files/updates). Either that or the client keeps receiving "self-signed certificate" errors.
What I want to know is this: Am I doing it all wrong? Is what I'm trying to do not achievable using a self-signed certificate? Do I need to register a domain and get a rootCA for my update server?
I have some working code, but at this point I just want to know if this can work using only a self-signed certificate. If it can, then I'll also post code if necessary and ask additional questions.
Thanks!