Unverified Commit 150d7595 authored by mohammadlachgar's avatar mohammadlachgar Committed by GitHub

Change only_load_rootCert to overwriteRootCert

//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"
parent 21c6309f
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment