• mohammadlachgar's avatar
    Change only_load_rootCert to overwriteRootCert · 150d7595
    mohammadlachgar authored
    //Methode 1
    //------------
     proxyServer = new ProxyServer();
    //proxyServer.Password_rootCert = "PfxPassword";
     proxyServer.TrustRootCertificate = true;
    .....
    .....
     proxyServer.Start(); 
    //The provided root certificate will be stored in proxy dll directory
    
    //=====================
    //Methode 2
    //----------
     proxyServer = new ProxyServer();
     proxyServer.TrustRootCertificate = true;
    
    //Will not (load or create) certificate Before call function CreateTrustedRootCertificate
    proxyServer.CertificateManager.SetInfo_LoadRootCertificate(@"C:\NameFolder\rootCert.pfx", "PfxPassword");
    .....
    .....
     proxyServer.Start(); 
    //The provided root certificate will be stored in "C:\NameFolder\rootCert.pfx"
    
    
    //=====================
    //Methode 3
    //------------
     proxyServer = new ProxyServer();
     proxyServer.TrustRootCertificate = true;
    
    //note : load now "C:\NameFolder\rootCert.pfx" (if existed)
    proxyServer.CertificateManager.LoadRootCertificate(@"C:\NameFolder\rootCert.pfx", "PfxPassword");
    .....
    .....
     proxyServer.Start(); 
    //if doesn't exist file, or password is incorect and (overwriteRootCert=true) ====> create new pfx file 
    //The provided root certificate will be stored in "C:\NameFolder\rootCert.pfx"
    150d7595
Name
Last commit
Last update
.build Loading commit data...
.nuget Loading commit data...
Examples Loading commit data...
Tests Loading commit data...
Titanium.Web.Proxy Loading commit data...
.gitignore Loading commit data...
LICENSE Loading commit data...
PULL_REQUEST_TEMPLATE.md Loading commit data...
README.md Loading commit data...
Titanium.Web.Proxy.sln Loading commit data...
Titanium.Web.Proxy.sln.DotSettings Loading commit data...
appveyor.yml Loading commit data...
build.bat Loading commit data...