Commit 20420aa0 authored by justcoding121's avatar justcoding121

fix certificate

parent 987df829
$Here = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$pfx = new-object System.Security.Cryptography.X509Certificates.X509Certificate2
$certPath = "$Here\lib\root-certificate-for-integration-test.pfx"
$certPath = "$Here\lib\rootCert.pfx"
$pfxPass = ""
$pfx.import($certPath,$pfxPass,"Exportable,PersistKeySet")
$store = new-object System.Security.Cryptography.X509Certificates.X509Store([System.Security.Cryptography.X509Certificates.StoreName]::Root, "localmachine")
......
......@@ -38,7 +38,6 @@ namespace Titanium.Web.Proxy.IntegrationTests
public ProxyTestController()
{
proxyServer = new ProxyServer();
proxyServer.CertificateManager.RootCertificateName = "root-certificate-for-integration-test.pfx";
var explicitEndPoint = new ExplicitProxyEndPoint(IPAddress.Any, 0, true);
proxyServer.AddEndPoint(explicitEndPoint);
proxyServer.BeforeRequest += OnRequest;
......
......@@ -31,7 +31,6 @@ namespace Titanium.Web.Proxy.IntegrationTests
public ProxyTestController()
{
proxyServer = new ProxyServer();
proxyServer.CertificateManager.RootCertificateName = "root-certificate-for-integration-test.pfx";
var explicitEndPoint = new ExplicitProxyEndPoint(IPAddress.Any, 0, true);
proxyServer.AddEndPoint(explicitEndPoint);
proxyServer.Start();
......
......@@ -82,8 +82,8 @@
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="..\..\.build\lib\root-certificate-for-integration-test.pfx">
<Link>root-certificate-for-integration-test.pfx</Link>
<None Include="..\..\.build\lib\rootCert.pfx">
<Link>rootCert.pfx</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
......
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