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
e22361ad
Commit
e22361ad
authored
Nov 13, 2015
by
titanium007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
issue #8 fixes
parent
ff916bd8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
HttpWebResponseExtensions.cs
Titanium.Web.Proxy/Extensions/HttpWebResponseExtensions.cs
+1
-1
CertificateManager.cs
Titanium.Web.Proxy/Helpers/CertificateManager.cs
+2
-2
No files found.
Titanium.Web.Proxy/Extensions/HttpWebResponseExtensions.cs
View file @
e22361ad
...
...
@@ -8,7 +8,7 @@ namespace Titanium.Web.Proxy.Extensions
public
static
Encoding
GetEncoding
(
this
HttpWebResponse
response
)
{
if
(
string
.
IsNullOrEmpty
(
response
.
CharacterSet
))
return
Encoding
.
GetEncoding
(
"ISO-8859-1"
);
return
Encoding
.
GetEncoding
(
response
.
CharacterSet
);
return
Encoding
.
GetEncoding
(
response
.
CharacterSet
.
Replace
(
@""""
,
string
.
Empty
)
);
}
}
}
\ No newline at end of file
Titanium.Web.Proxy/Helpers/CertificateManager.cs
View file @
e22361ad
...
...
@@ -9,7 +9,7 @@ namespace Titanium.Web.Proxy.Helpers
public
class
CertificateManager
:
IDisposable
{
private
const
string
CertCreateFormat
=
"-ss {0} -n \"CN={1}, O={2}\" -sky {3} -cy {4} -m 120 -a sha256 -eku 1.3.6.1.5.5.7.3.1
-b {5:MM/dd/yyyy} {6
}"
;
"-ss {0} -n \"CN={1}, O={2}\" -sky {3} -cy {4} -m 120 -a sha256 -eku 1.3.6.1.5.5.7.3.1
{5
}"
;
private
readonly
IDictionary
<
string
,
X509Certificate2
>
_certificateCache
;
...
...
@@ -168,7 +168,7 @@ namespace Titanium.Web.Proxy.Helpers
string
certCreatArgs
=
string
.
Format
(
CertCreateFormat
,
store
.
Name
,
certificateName
,
Issuer
,
isRootCertificate
?
"signature"
:
"exchange"
,
isRootCertificate
?
"authority"
:
"end"
,
DateTime
.
Now
,
isRootCertificate
?
"authority"
:
"end"
,
isRootCertificate
?
"-h 1 -r"
:
string
.
Format
(
"-pe -in \"{0}\" -is Root"
,
RootCertificateName
));
return
certCreatArgs
;
...
...
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