-
Notifications
You must be signed in to change notification settings - Fork 137
Description
I am currently using the Telegraph library and have successfully set up an HTTPS server on iOS, providing HTTPS services with self-signed certificates and a CA. My goal now is to extend this to a proxy server, so that it can accelerate network requests and return local resources when appropriate.
Specifically, I want to decrypt HTTPS data for specific domains, similar to how localhost works with self-signed certificates.
Expected Features:
1. Proxy Server Functionality: Implement proxy server capabilities to receive and forward HTTPS requests for specific domains.
2. SSL/TLS Termination: Dynamically generate and serve self-signed certificates for the target domains on the proxy server. If dynamic generation is not feasible, I am considering packaging the corresponding certificates for specific domains and providing them when the request is received.
3. Failed Resource Response: How should I return a failure when there is no local resource? Can I use proxyConfig.allowFailover = true to automatically forward the request to the original server if the resource is not available locally?
Please provide guidance on how to implement these features, especially regarding the self-signed certificate configuration and handling failover when local resources are unavailable.