• mohammadlachgar's avatar
    Change only_load_rootCert to overwriteRootCert · b663095c
    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"
    b663095c
Name
Last commit
Last update
..
Compression Loading commit data...
Decompression Loading commit data...
EventArguments Loading commit data...
Exceptions Loading commit data...
Extensions Loading commit data...
Helpers Loading commit data...
Http Loading commit data...
Models Loading commit data...
Network Loading commit data...
Properties Loading commit data...
Shared Loading commit data...
CertificateHandler.cs Loading commit data...
ProxyAuthorizationHandler.cs Loading commit data...
ProxyServer.cs Loading commit data...
RequestHandler.cs Loading commit data...
ResponseHandler.cs Loading commit data...
StrongNameKey.snk Loading commit data...
Titanium.Web.Proxy.csproj Loading commit data...
Titanium.Web.Proxy.nuspec Loading commit data...
WinAuthHandler.cs Loading commit data...
app.config Loading commit data...
packages.config Loading commit data...