Commit 623f075e authored by justcoding121's avatar justcoding121

comment out problematic test

parent 677f7a7f
......@@ -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)
//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()
{
var tasks = new List<Task>();
......@@ -57,6 +57,7 @@ namespace Titanium.Web.Proxy.UnitTests
mgr.CertificateEngine = CertificateEngine.DefaultWindows;
mgr.CreateRootCertificate(true);
mgr.TrustRootCertificate();
//mgr.TrustRootCertificateAsAdmin();
mgr.ClearIdleCertificates();
for (int i = 0; i < 5; i++)
......
......@@ -296,6 +296,8 @@ namespace Titanium.Web.Proxy.Network
var x509RootStore = new X509Store(StoreName.Root, storeLocation);
var x509PersonalStore = new X509Store(StoreName.My, storeLocation);
//TODO
//also it should do not duplicate if certificate already exists
try
{
x509RootStore.Open(OpenFlags.ReadWrite);
......@@ -651,6 +653,9 @@ namespace Titanium.Web.Proxy.Network
string fileName = Path.GetTempFileName();
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
{
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