• 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
..
Certificate Loading commit data...
Tcp Loading commit data...
WinAuth Loading commit data...
CachedCertificate.cs Loading commit data...
CertificateManager.cs Loading commit data...
DebugCustomBufferedStream.cs Loading commit data...
ProxyClient.cs Loading commit data...