Commit fabfe979 authored by justcoding121's avatar justcoding121

comment out problematic test

parent 31dde587
...@@ -44,7 +44,7 @@ namespace Titanium.Web.Proxy.UnitTests ...@@ -44,7 +44,7 @@ namespace Titanium.Web.Proxy.UnitTests
//uncomment this to compare WinCert maker performance with BC (BC takes more time for same test above) //uncomment this to compare WinCert maker performance with BC (BC takes more time for same test above)
//cannot run this test in build server since trusting the certificate won't happen successfully //cannot run this test in build server since trusting the certificate won't happen successfully
[TestMethod] //[TestMethod]
public async Task Simple_Create_Win_Certificate_Test() public async Task Simple_Create_Win_Certificate_Test()
{ {
var tasks = new List<Task>(); var tasks = new List<Task>();
...@@ -57,6 +57,7 @@ namespace Titanium.Web.Proxy.UnitTests ...@@ -57,6 +57,7 @@ namespace Titanium.Web.Proxy.UnitTests
mgr.CertificateEngine = CertificateEngine.DefaultWindows; mgr.CertificateEngine = CertificateEngine.DefaultWindows;
mgr.CreateRootCertificate(true); mgr.CreateRootCertificate(true);
mgr.TrustRootCertificate(); mgr.TrustRootCertificate();
//mgr.TrustRootCertificateAsAdmin();
mgr.ClearIdleCertificates(); mgr.ClearIdleCertificates();
for (int i = 0; i < 5; i++) for (int i = 0; i < 5; i++)
......
...@@ -295,7 +295,9 @@ namespace Titanium.Web.Proxy.Network ...@@ -295,7 +295,9 @@ namespace Titanium.Web.Proxy.Network
var x509RootStore = new X509Store(StoreName.Root, storeLocation); var x509RootStore = new X509Store(StoreName.Root, storeLocation);
var x509PersonalStore = new X509Store(StoreName.My, storeLocation); var x509PersonalStore = new X509Store(StoreName.My, storeLocation);
//TODO
//also it should do not duplicate if certificate already exists
try try
{ {
x509RootStore.Open(OpenFlags.ReadWrite); x509RootStore.Open(OpenFlags.ReadWrite);
...@@ -651,6 +653,9 @@ namespace Titanium.Web.Proxy.Network ...@@ -651,6 +653,9 @@ namespace Titanium.Web.Proxy.Network
string fileName = Path.GetTempFileName(); string fileName = Path.GetTempFileName();
File.WriteAllBytes(fileName, RootCertificate.Export(X509ContentType.Pkcs12, PfxPassword)); File.WriteAllBytes(fileName, RootCertificate.Export(X509ContentType.Pkcs12, PfxPassword));
//TODO
//need to figure out why this command do not add
//certificate to currentuser\personal store
var info = new ProcessStartInfo var info = new ProcessStartInfo
{ {
FileName = "certutil.exe", FileName = "certutil.exe",
......
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