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
3e3698bc
Commit
3e3698bc
authored
Mar 12, 2018
by
justcoding121
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update error msgs
parent
a6f402f7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
CertificateManager.cs
Titanium.Web.Proxy/Network/CertificateManager.cs
+8
-8
No files found.
Titanium.Web.Proxy/Network/CertificateManager.cs
View file @
3e3698bc
...
...
@@ -295,8 +295,8 @@ namespace Titanium.Web.Proxy.Network
if
(
RootCertificate
==
null
)
{
exceptionFunc
(
new
Exception
(
"Could not
set root
certificate"
+
" as
system proxy since
it is null or empty."
));
new
Exception
(
"Could not
install
certificate"
+
" as it is null or empty."
));
return
;
}
...
...
@@ -330,11 +330,11 @@ namespace Titanium.Web.Proxy.Network
/// <returns></returns>
private
void
UninstallCertificate
(
StoreName
storeName
,
StoreLocation
storeLocation
,
X509Certificate2
certificate
)
{
if
(
RootC
ertificate
==
null
)
if
(
c
ertificate
==
null
)
{
exceptionFunc
(
new
Exception
(
"Could not
set root
certificate"
+
" as
system proxy since
it is null or empty."
));
new
Exception
(
"Could not
remove
certificate"
+
" as it is null or empty."
));
return
;
}
...
...
@@ -653,12 +653,12 @@ namespace Titanium.Web.Proxy.Network
return
false
;
}
string
pfxFileName
=
Path
.
GetTempFileName
();
File
.
WriteAllBytes
(
pfxFileName
,
RootCertificate
.
Export
(
X509ContentType
.
Pkcs12
,
PfxPassword
));
//currentUser\Personal
InstallCertificate
(
StoreName
.
My
,
StoreLocation
.
CurrentUser
);
string
pfxFileName
=
Path
.
GetTempFileName
();
File
.
WriteAllBytes
(
pfxFileName
,
RootCertificate
.
Export
(
X509ContentType
.
Pkcs12
,
PfxPassword
));
//currentUser\Root, currentMachine\Personal & currentMachine\Root
var
info
=
new
ProcessStartInfo
()
{
...
...
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