Skip to content

Commit

Permalink
- Test SSL issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Cris Uy committed Sep 15, 2017
1 parent 9c153b4 commit 75e9715
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CSFramework.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

Pod::Spec.new do |s|
s.name = 'CSFramework'
s.version = '0.2.7'
s.summary = '0.2.7'
s.version = '0.2.8'
s.summary = '0.2.8'

# This description is used to generate tags and improve search results.
# * Think: What does it do? Why did you write it? What is the focus?
Expand Down
6 changes: 5 additions & 1 deletion CSFramework/Classes/CSRequestManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@ - (void)initializeHTTPManagerAuthenticated:(BOOL)authenticated {
}

self.httpManager = [AFHTTPSessionManager manager];
self.httpManager.securityPolicy.allowInvalidCertificates = YES;
// self.httpManager.securityPolicy.allowInvalidCertificates = YES;
AFSecurityPolicy *policy = [AFSecurityPolicy policyWithPinningMode:AFSSLPinningModeNone];
[policy setAllowInvalidCertificates:YES];
[policy setValidatesDomainName:NO];
self.httpManager.securityPolicy = policy;

self.httpManager.requestSerializer = [AFHTTPRequestSerializer serializer]; // HTTP Request
self.httpManager.responseSerializer = [AFJSONResponseSerializer serializer]; // JSON Response
Expand Down

0 comments on commit 75e9715

Please sign in to comment.