From f472f81a695d7de8858d1c36ba07f3532455b368 Mon Sep 17 00:00:00 2001 From: Constantin Lungu Date: Tue, 2 Aug 2016 11:18:49 +0300 Subject: [PATCH] Add an assertion for the certificate when initializing the URL session delegate --- Classes/API/SERequestHandlerURLSessionDelegate.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Classes/API/SERequestHandlerURLSessionDelegate.m b/Classes/API/SERequestHandlerURLSessionDelegate.m index a93f926..606c65c 100644 --- a/Classes/API/SERequestHandlerURLSessionDelegate.m +++ b/Classes/API/SERequestHandlerURLSessionDelegate.m @@ -18,6 +18,8 @@ + (instancetype)sharedInstance static dispatch_once_t onceToken; dispatch_once(&onceToken, ^{ _sharedInstance = [[self alloc] init]; + NSString* cerPath = [[NSBundle mainBundle] pathForResource:@"saltedge.com" ofType:@"cer"]; + NSAssert(cerPath != nil, @"The saltedge.com SSL certificate could not be located in the app bundle."); }); return _sharedInstance; }