Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
Titanium-Web-Proxy
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Titanium-Web-Proxy
Commits
20420aa0
Commit
20420aa0
authored
Nov 02, 2018
by
justcoding121
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix certificate
parent
987df829
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
3 additions
and
5 deletions
+3
-5
install-certificate.ps1
.build/install-certificate.ps1
+1
-1
root-certificate-for-integration-test.pfx
.build/lib/root-certificate-for-integration-test.pfx
+0
-0
InterceptionTests.cs
.../Titanium.Web.Proxy.IntegrationTests/InterceptionTests.cs
+0
-1
SslTests.cs
tests/Titanium.Web.Proxy.IntegrationTests/SslTests.cs
+0
-1
Titanium.Web.Proxy.IntegrationTests.csproj
...tegrationTests/Titanium.Web.Proxy.IntegrationTests.csproj
+2
-2
No files found.
.build/install-certificate.ps1
View file @
20420aa0
$Here
=
"
$(
Split-Path
-parent
$MyInvocation
.MyCommand.Definition
)
"
$Here
=
"
$(
Split-Path
-parent
$MyInvocation
.MyCommand.Definition
)
"
$pfx
=
new-object
System.Security.Cryptography.X509Certificates.X509Certificate2
$pfx
=
new-object
System.Security.Cryptography.X509Certificates.X509Certificate2
$certPath
=
"
$Here
\lib\root
-certificate-for-integration-tes
t.pfx"
$certPath
=
"
$Here
\lib\root
Cer
t.pfx"
$pfxPass
=
""
$pfxPass
=
""
$pfx
.import
(
$certPath
,
$pfxPass
,
"Exportable,PersistKeySet"
)
$pfx
.import
(
$certPath
,
$pfxPass
,
"Exportable,PersistKeySet"
)
$store
=
new-object
System.Security.Cryptography.X509Certificates.X509Store
([
System.Security.Cryptography.X509Certificates.StoreName]::Root,
"localmachine"
)
$store
=
new-object
System.Security.Cryptography.X509Certificates.X509Store
([
System.Security.Cryptography.X509Certificates.StoreName]::Root,
"localmachine"
)
...
...
.build/lib/root-certificate-for-integration-test.pfx
deleted
100644 → 0
View file @
987df829
File deleted
tests/Titanium.Web.Proxy.IntegrationTests/InterceptionTests.cs
View file @
20420aa0
...
@@ -38,7 +38,6 @@ namespace Titanium.Web.Proxy.IntegrationTests
...
@@ -38,7 +38,6 @@ namespace Titanium.Web.Proxy.IntegrationTests
public
ProxyTestController
()
public
ProxyTestController
()
{
{
proxyServer
=
new
ProxyServer
();
proxyServer
=
new
ProxyServer
();
proxyServer
.
CertificateManager
.
RootCertificateName
=
"root-certificate-for-integration-test.pfx"
;
var
explicitEndPoint
=
new
ExplicitProxyEndPoint
(
IPAddress
.
Any
,
0
,
true
);
var
explicitEndPoint
=
new
ExplicitProxyEndPoint
(
IPAddress
.
Any
,
0
,
true
);
proxyServer
.
AddEndPoint
(
explicitEndPoint
);
proxyServer
.
AddEndPoint
(
explicitEndPoint
);
proxyServer
.
BeforeRequest
+=
OnRequest
;
proxyServer
.
BeforeRequest
+=
OnRequest
;
...
...
tests/Titanium.Web.Proxy.IntegrationTests/SslTests.cs
View file @
20420aa0
...
@@ -31,7 +31,6 @@ namespace Titanium.Web.Proxy.IntegrationTests
...
@@ -31,7 +31,6 @@ namespace Titanium.Web.Proxy.IntegrationTests
public
ProxyTestController
()
public
ProxyTestController
()
{
{
proxyServer
=
new
ProxyServer
();
proxyServer
=
new
ProxyServer
();
proxyServer
.
CertificateManager
.
RootCertificateName
=
"root-certificate-for-integration-test.pfx"
;
var
explicitEndPoint
=
new
ExplicitProxyEndPoint
(
IPAddress
.
Any
,
0
,
true
);
var
explicitEndPoint
=
new
ExplicitProxyEndPoint
(
IPAddress
.
Any
,
0
,
true
);
proxyServer
.
AddEndPoint
(
explicitEndPoint
);
proxyServer
.
AddEndPoint
(
explicitEndPoint
);
proxyServer
.
Start
();
proxyServer
.
Start
();
...
...
tests/Titanium.Web.Proxy.IntegrationTests/Titanium.Web.Proxy.IntegrationTests.csproj
View file @
20420aa0
...
@@ -82,8 +82,8 @@
...
@@ -82,8 +82,8 @@
</ProjectReference>
</ProjectReference>
</ItemGroup>
</ItemGroup>
<ItemGroup>
<ItemGroup>
<None
Include=
"..\..\.build\lib\root
-certificate-for-integration-tes
t.pfx"
>
<None
Include=
"..\..\.build\lib\root
Cer
t.pfx"
>
<Link>
root
-certificate-for-integration-tes
t.pfx
</Link>
<Link>
root
Cer
t.pfx
</Link>
<CopyToOutputDirectory>
PreserveNewest
</CopyToOutputDirectory>
<CopyToOutputDirectory>
PreserveNewest
</CopyToOutputDirectory>
</None>
</None>
</ItemGroup>
</ItemGroup>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment