Skip to content
This repository has been archived by the owner on Jul 9, 2023. It is now read-only.

Getting unsecured connection after proxy restart #917

Answered by kpobb1989
kpobb1989 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey, I've found a solution after debugging Titanium.Web.Proxy.

Here the working code sample:

            var proxyServer = new Titanium.Web.Proxy.ProxyServer();
            proxyServer.BeforeRequest += BeforeRequest;
            proxyServer.BeforeResponse += BeforeResponse;
            // Below settings are required by iOS v15
            proxyServer.SupportedSslProtocols = SslProtocols.Tls12;
            proxyServer.CertificateManager.CertificateValidDays = 300;

            proxyServer.CertificateManager.RootCertificate = proxyServer.CertificateManager.LoadRootCertificate();

            // Create a new rootCert.pfx when it does not exist in the root folder
            if (proxyServer.C…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kpobb1989
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant